Unicode problem
gargravarr at whoever.com
gargravarr at whoever.com
Wed Mar 20 15:34:31 EST 2002
I have a problem with Unicode strings, the error I get is:
UnicodeError: ASCII encoding error: ordinal not in range(128)
It is caused by
body.write('<h2>%s</h2>\n' % i.firstChild.data)
Where body is a StringIO object, and i is a xml.dom.minidom object.
The characters it reacts to is the 3 Norwegian 'extra' ones: æ, ø, å
(if you can see them)
Using Python2.2 on Win32
Help appreciated
Thansk in advance!
Tom
More information about the Python-list
mailing list