[Expat-discuss] iso-8859-1 "unknown encoding" ?

Alexander Indenbaum alexander.indenbaum at gmail.com
Thu Feb 3 19:08:29 CET 2005


Hello,

I'm new to expat and doing something basically wrong :{)

I'm using expat-2005-01-28. I've created parser with 
XML_ParserCreate(NULL) and simple element start and end handlers.
When I'm passing "iso-8859-1" xml buffer to XML_Parse() I'm getting 
error 18 ( unknown encoding ). BTW xml without encoding specification
parsed just fine.

What am I doing wrong?
How should I handle the xml if I do not know from the beginning what
kind on encoding it will use?

Thanks in advance for your help,
  Alexander Indenbaum


More information about the Expat-discuss mailing list