[xml] Newbie encoding question



Title: Message


I have an xml file that does not have its encoding set.  This file contains the © character which cause xmlParseFile API not to run.

I would like to change the the default "UTF-8" encoding to "ISO-8859-1" in code.  I tried playing with the xmlAddEncodingAlias() API but that did seem to do what I what I though it was going to do.
 
What is the proper way to change or set the the default encoding in libxml2.
 
thanks
 
erik
Erik Berg
divine, inc.
direct: 630.799.9681
fax: 630.799.7517
erik berg divine com



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]