Re: [google-appengine] UnicodeEncodeError but still saves to the Datastore

2013-06-04 Thread Renzo Nuccitelli
What i do in my application is setting unicode literals in my scripts. All of them start with: from __future__ import unicode_literals Once GAE and Jinja, my template system, work just fine with this configuration, i have no hadaches with strings. Good Lucky, Renzo On Monday, June 3, 2013 3

Re: [google-appengine] UnicodeEncodeError but still saves to the Datastore

2013-06-03 Thread Takashi Matsuo
On Sun, Jun 2, 2013 at 4:18 PM, NP wrote: > Hello all, > > My datastore model has an attribute of class string. According to the > documentation, the String class should be of type str or unicode. > > The data I'm trying to save is unicode (I confirmed this by printing out > the type and the orig

[google-appengine] UnicodeEncodeError but still saves to the Datastore

2013-06-02 Thread NP
Hello all, My datastore model has an attribute of class string. According to the documentation, the String class should be of type str or unicode. The data I'm trying to save is unicode (I confirmed this by printing out the type and the original page was encoded in utf-8). My data is successfu