[issue27120] xmllib unable to parse in UTF8 format

2016-05-27 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: test needed -> resolved status: open -> closed ___ Python tracker ___

[issue27120] xmllib unable to parse in UTF8 format

2016-05-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue222587. Seems this was the reason why the xmllib module was deprecated. Use the xml package for parsing XML (xml.etree.ElementTree, xml.dom.minidom, xml.sax, etc). -- resolution: -> wont fix ___

[issue27120] xmllib unable to parse in UTF8 format

2016-05-25 Thread Enrico
Enrico added the comment: I have attached xmllib.py. This file is in python23\lib folder. The strings in XML file are in cyrillic language. My code: import xmllib class Parser(xmllib.XMLParser): # a simple styling engine def __init__(self): xmllib.XMLParser.__init__(self)

[issue27120] xmllib unable to parse in UTF8 format

2016-05-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Could you please provide minimal reproducer? Minimal script and minimal data that expose the issue. -- nosy: +serhiy.storchaka stage: -> test needed ___ Python tracker

[issue27120] xmllib unable to parse in UTF8 format

2016-05-25 Thread Enrico
New submission from Enrico: The xmllib.XMLParser seems to be unable to parse an XML file that contains cyrillic characters. File "xmllib.pyc", line 172, in feed File "xmllib.pyc", line 268, in goahead File "xmllib.pyc", line 798, in syntax_error Error: Syntax error at line 8: