[Chicago] AppEngine Bulk Loading

Ian Bicking ianb at colorstudy.com
Tue May 13 20:26:37 CEST 2008


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.

-- 
Ian Bicking : ianb at colorstudy.com : http://blog.ianbicking.org


More information about the Chicago mailing list