[issue3742] Parsing XML file with Unicode characters causes problem

Joshua Logan report at bugs.python.org
Sun Aug 31 21:43:38 CEST 2008


New submission from Joshua Logan <dear.jay.logan at gmail.com>:

Python 3.0b2 will not parse the XML file located at
http://rubyquiz.com/SongLibrary.xml.gz

It complains of a UnicodeEncodeError 
'charmap' codec can't encode character '\xc8' in position 45: ch
aracter maps to <undefined>

I included a sample program, just in case I was doing something wrong
while coding.

Python 3.0b2 (r30b2:65106, Jul 18 2008, 18:44:17) [MSC v.1500 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.

----------
components: XML
files: read_song_xml.py
messages: 72211
nosy: jaylogan
severity: normal
status: open
title: Parsing XML file with Unicode characters causes problem
type: behavior
versions: Python 3.0
Added file: http://bugs.python.org/file11319/read_song_xml.py

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3742>
_______________________________________


More information about the Python-bugs-list mailing list