On 24 Mar 2014, at 10:45 AM, Massimo Di Pierro <[email protected]> wrote: > The convention in web2py is NO UNICODE. all text handled by web2py must be > UTF8 encoded strings.
Though there are quite a few instances of html.py taking explicit notice of unicode (search for 'unicode'...). > > On Monday, 24 March 2014 08:04:35 UTC-5, Chris Hobbs wrote: > html.py does not seem to be unicode-safe. It contains (line 1914 or > thereabouts): > > components.append(OPTION(c, _value=str(c))) > > In my case c contains Max-Guénaël (i.e., u"Max-Gu\xe9na\xebl"). The str(c) > dies nastily. > > Is this a bug or am I asking too much of web2py? > > -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.

