Relying on setdefaultencoding isn't ideal, especially if you're
working with code that you plan on making reusable.

The proper solution normally involves decoding your input data using
the proper encoding when it's retrieved (e.g. some.data.decode
('utf-8')). How you go about doing so depends on the design of your
app. I can attempt to help troubleshoot if you're able to provide a
code sample where you've run into this.

Daniel

On Nov 24, 6:13 pm, Amir  Michail <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Sometimes I get this error:
>
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position
> 67: ordinal not in range(128)
>
> So I tried this fix mentioned 
> inhttp://groups.google.com/group/google-appengine/browse_thread/thread/...
>
> import sys
> reload(sys)
> sys.setdefaultencoding('utf-8')
>
> This works except that it sometimes results in blank pages.
>
> Any workarounds?
>
> Amir
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" 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/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to