Hi,
Saibot wrote:
> v = quote_plus(str(v))
> UnicodeEncodeError: 'ascii' codec can't encode character u'\xdf' in
> position 6: ordinal not in range(128)
>
> Can anybody explain me what I am doing wrong?
Wrong encoding. \xdf is from cp125x or similar encoding. Try following:
v.decode('cp1250') or
v.decode('cp1250').encode('utf-8')
HTH,
Dalius
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---