Hi - I'm not sure if this is a Django problem, but I'm working on a Django project so I thought I'd start here.
In my project users will submit text by way of a text field which will eventually be encoded with urllib.quote() and used in a url. When I submit text, certain characters appear on my console in the debugger as \u encoded symbols (they are unicode strings). In the admin interface, strings containing an apostrophe have a space inserted before the apostrophe, for example: "Europe ’s sovereign-debt crisis" In the console, that string appears as "Europe \u2019s sovereign-debt crisis". When I try to pass this string through urllib.quote() I get a KeyError: qk = quote(query_text) File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib.py", line 1216, in quote res = map(safe_map.__getitem__, s) KeyError: u'\u2019' Is seems like the text, which originates from the users' web browser is being corrupted when it is encoded as unicode. Any ideas on how to proceed would be greatly appreciated. Mike -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.