Hello,
I am using Python 3.0b2.
I have an XML file that has the unicode character '\u012b' in it,
which, when parsed, causes a UnicodeEncodeEr ror:
'charmap' codec can't encode character '\u012b' in position 26:
character maps to <undefined>
This happens even when I assign this character to a reference in the
interpreter:
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.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python30\li b\io.py", line 1428, in write
b = encoder.encode( s)
File "C:\Python30\li b\encodings\cp4 37.py", line 19, in encode
return codecs.charmap_ encode(input,se lf.errors,encod ing_map)[0]
UnicodeEncodeEr ror: 'charmap' codec can't encode character '\u012b' in
position
1: character maps to <undefined>
Is this a known issue, or am I doing something wrong?
Here is a link to the XML file. The character is on line 600, char 54
I am using Python 3.0b2.
I have an XML file that has the unicode character '\u012b' in it,
which, when parsed, causes a UnicodeEncodeEr ror:
'charmap' codec can't encode character '\u012b' in position 26:
character maps to <undefined>
This happens even when I assign this character to a reference in the
interpreter:
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.
>>s = '\u012b'
>>s
>>s
File "<stdin>", line 1, in <module>
File "C:\Python30\li b\io.py", line 1428, in write
b = encoder.encode( s)
File "C:\Python30\li b\encodings\cp4 37.py", line 19, in encode
return codecs.charmap_ encode(input,se lf.errors,encod ing_map)[0]
UnicodeEncodeEr ror: 'charmap' codec can't encode character '\u012b' in
position
1: character maps to <undefined>
Is this a known issue, or am I doing something wrong?
Here is a link to the XML file. The character is on line 600, char 54
Comment