Amaury Forgeot d'Arc <amaur...@gmail.com> added the comment: Testing with python 2.5: oDoc.set("ATTR", "ÄÖÜ") uses the encoding used by the source code (with "# -*- coding:";) If I use utf-8 instead, the output is: <ROOT ATTR="ÄÖÜ" /> which contains the numbers of the 3 pairs of surrogates.
---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue9692> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com