Re: [xml] question about encoding
- From: Thomas Dold <Thomas Dold gmx de>
- To: veillard redhat com
- Cc: xml gnome org
- Cc: xml gnome org
- Subject: Re: [xml] question about encoding
- Date: Wed, 7 Mar 2001 21:25:05 +0100 (MET)
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ü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ü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]