Re: [xml] question about encoding

On Wed, Mar 07, 2001 at 09:25:05PM +0100, Thomas Dold wrote:
Ok. Did it like you said. But even if the string "München" is converted to
UTF-8, I get an error when saving the document with xmlSaveFileEnc with
encoding "ISO-8859-1" (document not in UTF-8). Why?

 As you said when creating the document:

     doc->encoding = xmlStrDup((xmlChar*)"ISO-8859-1");  

   Don't do that, it's simply wrong ..
It will probably fix the problem. If no, well try debugging because
I don't know where this fails.


Daniel Veillard      | Red Hat Network
veillard redhat com  | libxml Gnome XML toolkit | Rpmfind RPM search engine

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