SAX unicode and ascii parsing problem

goldtech goldtech at worldpost.com
Tue Nov 30 16:15:53 EST 2010


snip...
>
> I'm just as stumped as I was when you first asked this question 13
> minutes ago. ;-)
>
> regards
>  Steve
>
snip...

Hi Steve,

Think I found it, for example:

line = 'my big string'
line.encode('ascii', 'ignore')

I processed the problem strings during parsing with this and it works
now. Got this from:

http://stackoverflow.com/questions/2365411/python-convert-unicode-to-ascii-without-errors


Best, Lee

:^)



More information about the Python-list mailing list