"Desilets, Alain" wrote:

> 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" ?>

utf-8 is the default encoding for XML, so that encoding declaration is optional.

</F> 



_______________________________________________
XML-SIG maillist  -  XML-SIG@python.org
http://mail.python.org/mailman/listinfo/xml-sig

Reply via email to