string.encode("utf-8")

2009/5/4 Ivan Maslov <vanya....@gmail.com>

> I have similar problem. On development server function urlencode works
> correctly with unicode string. In production error occurs:
> UnicodeEncodeError: 'ascii' codec can't encode character u'\xe2' in position
> 2: ordinal not in range(128). It occurs when i pass russian strings as
> parameter.
>
> 2009/5/4 Matt Trinneer <matt.trinn...@gmail.com>
>
>>
>> To further that post...
>>
>> It seems to me that URLs containing characters such as ( and ) are not
>> being fetched properly on the production environment.  I've attempted
>> escaping the characters, as per RFC 3986.  However the escaped url
>> (http://dbpedia.org/resource/Companion_%28manga%29)  doesn't fair any
>> better.
>>
>>
>>
>>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to