[Expat-discuss] 'ASCII encoding error' with encoding 'iso-8859-1'

Karl Waclawek karl at waclawek.net
Wed Dec 15 16:56:59 CET 2004


Ken Ward wrote:
> Hello,
> 
> I'm using expat from Python 2.1.1 on RedHat Linux.  I think it's expat
> 1.95.1, based on running 'strings' on the library.
> 
> I'm trying to parse a file with Latin-1 characters above 128.  I set the
> encoding to "iso-8859-1" in ParserCreate, but I get this error:
> UnicodeError: ASCII encoding error: ordinal not in range(128)

This does not seem to be an error message generated by Expat.

Karl


More information about the Expat-discuss mailing list