xmlproc returning all strings as unicode?

"Martin v. Löwis" martin at v.loewis.de
Fri Oct 10 18:48:28 EDT 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