Hi,
i'm new here in this list.

i'm developing a little program using an xml document. So far it's easy 
going, but when parsing an xml document which contains the EURO symbol 
('€') then I get an error:

UnicodeEncodeError: 'charmap' codec can't encode character u'\xa4' in 
position 11834: character maps to <undefined>

the relevant piece of code is:

from xml.dom.minidom import Document, parse, parseString
...
doc = parse(inFIleName)


[EMAIL PROTECTED] usexml $ locale
[EMAIL PROTECTED]
LC_CTYPE="[EMAIL PROTECTED]"
LC_NUMERIC="[EMAIL PROTECTED]"
LC_TIME="[EMAIL PROTECTED]"
LC_COLLATE="[EMAIL PROTECTED]"
LC_MONETARY="[EMAIL PROTECTED]"
LC_MESSAGES="[EMAIL PROTECTED]"
LC_PAPER="[EMAIL PROTECTED]"
LC_NAME="[EMAIL PROTECTED]"
LC_ADDRESS="[EMAIL PROTECTED]"
LC_TELEPHONE="[EMAIL PROTECTED]"
LC_MEASUREMENT="[EMAIL PROTECTED]"
LC_IDENTIFICATION="[EMAIL PROTECTED]"
[EMAIL PROTECTED]


any help appreciated

Hellmut

-- 
Dr. Hellmut Weber         [EMAIL PROTECTED]
Degenfeldstraße 2         tel   +49-89-3081172
D-80803 München-Schwabing mobil +49-172-8450321
please: No DOCs, no PPTs. why: tinyurl.com/cbgq

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to