Irit Katriel <iritkatr...@yahoo.com> added the comment:
I don't see this problem on 3.10. Is this still an issue or can this issue be closed? Running Release|Win32 interpreter... Python 3.10.0a0 (heads/bpo17490-dirty:00eb063b66, Sep 27 2020, 13:20:24) [MSC v.1916 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> c = u'\u65e5\u672c\u8a9e' >>> import xml.dom.minidom >>> xml.dom.minidom.parseString('<?xml version="1.0" encoding="UTF-8" >>> ?><x>%s</x>' % c.encode('UTF-8')) <xml.dom.minidom.Document object at 0x015FC9E8> >>> xml.dom.minidom.parseString('<?xml version="1.0" encoding="ISO-2022-JP" >>> ?><x>%s</x>' % c.encode('ISO-2022-JP')) <xml.dom.minidom.Document object at 0x01493208> >>> ---------- nosy: +iritkatriel _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue15877> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com