

import sys
import cgi # I first missed this to mention
def convert_special_chars(label):
if sys.version_info[0]==2: # python 2.x
label = label.decode('utf-8')
label = cgi.escape(label)
label = label.encode('ascii', 'xmlcharrefreplace')
return label
Hello Ramos,
since I can't see your screenshot, I have to guess. But in German we also our special characters and I encode these by the following procedure:
import re
import sys
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/b63a8e8e-717a-41e7-b2fd-476dae50ebed%40googlegroups.com.