Skip to content Skip to sidebar Skip to footer

Python 2.7, Appengine Data Store & Unicode

So I've been reading quite a bit about Unicoding tonight because I was thinking of switching to Jinja2, which requires Unicode to be used everywhere within the app. I think I have

Solution 1:

You should not need to .decode(self.request.get('stuff'),utf-8 if you using webapp or webapp2. The framework respects the input type of the data as specified.

Everything else looks right.

Also I believe that

from __future__ import unicode_strings

should be

from __future__ import unicode_literals

and is only available in 2.6 and 2.7 So in App Engine it would only be available if you are using 2.7

Post a Comment for "Python 2.7, Appengine Data Store & Unicode"