Please have a look at the following code: http://pastebin.com/m7085a2de
One might expect that for the url "/éé", it would return éé.
Well that works under the dev server but not under lighttpd. Instead
the string is a unicode of the encoded string which returns éé.
Under the dev server, name is correctly decoded to u'\xe9\xe9'.
Under the lighttpd, name is incorrectly decoded to
u'\xc3\xa9\xc3\xa9'. The variable name should either be a string or
left as a unicode.
>>> a = 'éé'.decode('utf-8').encode('utf-8')
>>> a
'\xc3\xa9\xc3\xa9'
>>> print a
éé
>>> b = u'\xc3\xa9\xc3\xa9'
>>> print b
éé
Any ideas what the problem is?
Thank you.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---