[XML-SIG] Unicode XML
Desilets, Alain
Alain.Desilets at nrc-cnrc.gc.ca
Wed Nov 2 21:06:05 CET 2005
I have an application which uses a WDDXMarshaller (the marshaller
variable below), to encode a dictionary (the mess_argvals variable) as
an XML string, as follows:
marshaller.dumps(mess_argvals)
My problem is that the dictionary mess_argvals may contain some values
which are strings with unicode characters in them. But unfortunately,
dumps() generates XML code that uses the default encoding, i.e. the XML
string starts with:
<?xml version="1.0" ?>
How can I make dumps() generate XML that uses the UTF-8 encoding. In
other words, how do I tell it to generate XML that starts with this
line:
<?xml version="1.0" encoding="UTF-8" ?>
More information about the XML-SIG
mailing list