This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ajung
Recipients
Date 2000-11-16.14:10:42
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
The xmllib.XMLParser seems to be unable to parse 
an XML file that contains 0xc3 0x9f (UTF8 representation
of the german ß).

Python 2.0 (Linux i386) always give me the following 
traceback:

suxlap@/tmp/xx(2)% python test.py test.xml
<?xml version="1.0" encoding="UTF-8" ?>

<test>Ãxüöä</test>

Traceback (most recent call last):
  File "test.py", line 20, in ?
    pp.feed(data)
  File "/opt/python-2.0/lib/python2.0/xmllib.py", line 165, in feed
    self.goahead(0)
  File "/opt/python-2.0/lib/python2.0/xmllib.py", line 261, in goahead
    self.syntax_error('illegal character in content')
  File "/opt/python-2.0/lib/python2.0/xmllib.py", line 786, in syntax_error
    raise RuntimeError, 'Syntax error at line %d: %s' % (self.lineno, message)
RuntimeError: Syntax error at line 3: illegal character in content         



Other UTF8 characters seem to work
History
Date User Action Args
2007-08-23 13:52:12adminlinkissue222587 messages
2007-08-23 13:52:12admincreate