H
Hellmut Weber
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)
leo@brunello usexml $ locale
LANG=de_DE@euro
LC_CTYPE="de_DE@euro"
LC_NUMERIC="de_DE@euro"
LC_TIME="de_DE@euro"
LC_COLLATE="de_DE@euro"
LC_MONETARY="de_DE@euro"
LC_MESSAGES="de_DE@euro"
LC_PAPER="de_DE@euro"
LC_NAME="de_DE@euro"
LC_ADDRESS="de_DE@euro"
LC_TELEPHONE="de_DE@euro"
LC_MEASUREMENT="de_DE@euro"
LC_IDENTIFICATION="de_DE@euro"
LC_ALL=de_DE@euro
any help appreciated
Hellmut
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)
leo@brunello usexml $ locale
LANG=de_DE@euro
LC_CTYPE="de_DE@euro"
LC_NUMERIC="de_DE@euro"
LC_TIME="de_DE@euro"
LC_COLLATE="de_DE@euro"
LC_MONETARY="de_DE@euro"
LC_MESSAGES="de_DE@euro"
LC_PAPER="de_DE@euro"
LC_NAME="de_DE@euro"
LC_ADDRESS="de_DE@euro"
LC_TELEPHONE="de_DE@euro"
LC_MEASUREMENT="de_DE@euro"
LC_IDENTIFICATION="de_DE@euro"
LC_ALL=de_DE@euro
any help appreciated
Hellmut