[Expat-discuss]

Karl Waclawek karl at waclawek.net
Mon Jan 13 09:26:16 EST 2003


----- Original Message ----- 
From: "Swapnel" <swapnel.shrivastava at mentorix.com>
To: <expat-discuss at libexpat.org>
Sent: Monday, January 13, 2003 12:22 AM
Subject: [Expat-discuss] 


> Hi All,
> We are using Expat 1.95.5 with our  'C' language application for parsing the
> XML file. The problem is we do not know in advance which encoding standard
> is used and in which editor it is saved.
> For Eg: the file can be created using windows-95 notepad or win-2000
> notepad.exe wherin you specify which encoding to use..
> Kindly help in solving this problem..

By default Expat supports these encodings:

  a.. UTF-8 
  b.. UTF-16 
  c.. ISO-8859-1 
  d.. US-ASCII 

which can be extended using the UnknownEncoding handler.

So, as long as your XML files are well-formed and encoded with one of the above,
you should not have to do anything special.

Karl




More information about the Expat-discuss mailing list