>> I use xml.dom.minidom to parse some xml, but when input[color=blue][color=green]
>> contains some specific caracters(æ, ø and å), I get an
>> UnicodeEncodeEr ror, like this:
>>
>> UnicodeEncodeEr ror: 'ascii' codec can't encode character
>> u'\xe6' in position 604: ordinal not in range(128).
>>
>> How can I avoid this error?
>>
>>
>> All help much appreciated![/color][/color]
I have found that some people refuse to stick to standards, so whenever I
parse XML files I remove any characters that fall in the range
<= 0x1f[color=blue]
>= 0xf0[/color]
Hope it helps.
Regards
Albert
>> contains some specific caracters(æ, ø and å), I get an
>> UnicodeEncodeEr ror, like this:
>>
>> UnicodeEncodeEr ror: 'ascii' codec can't encode character
>> u'\xe6' in position 604: ordinal not in range(128).
>>
>> How can I avoid this error?
>>
>>
>> All help much appreciated![/color][/color]
I have found that some people refuse to stick to standards, so whenever I
parse XML files I remove any characters that fall in the range
<= 0x1f[color=blue]
>= 0xf0[/color]
Hope it helps.
Regards
Albert
Comment