Re: [xml] question about encoding



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?
Saving with xmlSaveFile works fine. I get the following document:

<?xml version="1.0"?>
<root>
<node town="M&#xFC;nchen"/>
</root>

Then I parse this document again. Without changing anything I save it again
with xmlSaveFileEnc (ISO-8859-1) and I get no error. The new document is:

<?xml version="1.0" encoding="ISO-8859-1"?>
<root>
<node town="M&#xFC;nchen"/>
</root>

I thought, that I should get, when I use xmlSaveFileEnc:

<?xml version="1.0" encoding="ISO-8859-1"?>
<root>
<node town="München"/>
</root>

What's wrong?

Thomas

-- 
Sent through GMX FreeMail - http://www.gmx.net




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