[Soap-Python] rpclib and non-unicode strings
azurIt
azurit at pobox.sk
Tue Oct 25 13:15:47 CEST 2011
Hi,
i'm having problems when returning non-unicode strings which contains unicode characters (i have strings in utf-8 but they are not python unicode):
ValueError: All strings must be XML compatible: Unicode or ASCII, no NULL bytes or control characters
Everything works fine when i convert strings to unicode but i cannot do this with all strings, i don't consider nice and clear to convert all strings just before returning them (i have most of them from MySQL returned by module python-mysql). Is there any way how could rpclib convert this for me before lxml parsing ? Everything is in UTF-8 so it shouldn't be a problem. Thank you.
azur
More information about the Soap
mailing list