String encoding problem in frozen application

Martin von Loewis loewis at informatik.hu-berlin.de
Tue Jan 22 13:10:36 EST 2002


Gordon McMillan <gmcm at hypernet.com> writes:

> The problem is that the import of the encoding is implicit. 
> As a red-blooded American, I have luxuriated in my ignorance 
> of all unicode issues, but I guess I'll have to figure out
> what triggers that bit of magic.

Somebody invoking .encode() on an string is a good indication, or
invoking unicode(). In either case, you may consider the string
literal as an indication what codecs are needed. If there is no string
argument, all guesses are open what codecs will be needed. 

Regards,
Martin



More information about the Python-list mailing list