xmlproc returning all strings as unicode?
"Martin v. Löwis"
martin at v.loewis.de
Sat Oct 11 00:48:28 CEST 2003
Ellinghaus, Lance wrote:
> Is there a way to make xmlproc not return all strings as unicode?
> I am passing in standard ASCII and it returns all data as unicode...
All XML API is defined to be based on Unicode, by W3C. Don't use
XML if you don't want Unicode.
> Or is there an easy way to convert unicode to standard ASCII?
Invoke .encode("ascii") on the strings you get.
Regards,
Martin
More information about the Python-list
mailing list