[Chicago] AppEngine Bulk Loading

Carl Karsten carl at personnelware.com
Tue May 13 21:02:33 CEST 2008


Ian Bicking wrote:
> Feihong Hsu wrote:
>> Argh. I can't use "line.encode('ascii', 'replace')" because many of
>> the strings in my app are ALL Unicode, and there would be no
>> distinction between them anymore.
> 
> There's several ASCII-safe encodings, like unicode_escape (which uses 
> Python string-literal escapes).  They are listed in the codecs module. 
> Of course, you might not want to store them in the datastore that way 
> either.
> 

Is the datastore on the other side of the IO barrier that requires Unicode data 
to be encoded?

Carl K


More information about the Chicago mailing list