Re: [xml] Encoding UTF-8
- From: Kasimier Buchcik <K Buchcik 4commerce de>
- To: Juan David Palomino <jpalomino tcpsi es>
- Cc: ML-libxml2 <xml gnome org>
- Subject: Re: [xml] Encoding UTF-8
- Date: Thu, 06 Oct 2005 19:33:07 +0200
Hi,
On Thu, 2005-10-06 at 18:57 +0200, Juan David Palomino wrote:
Hi to all, i have problems generating a file with encoding UTF-8.
I don't know what to do to create the files with encoding UTF-8. Now i
create the xml files without any encoding.
What function or method set the encoding?
You could use xmlSaveFileEnc() [1] to save it with the desired
encoding.
An omitted "encoding" in the XML-declaration of your document
means that the document is either encoded in UTF-8 or UTF-16.
If serialized by Libxml2, this would be UTF-8, since this is
Libxml2's internal encoding and thus the default encoding used
for serialization. It might be that your document is already
UTF-8 encoded, but the declaration simply does not mention this fact.
[1] http://www.xmlsoft.org/html/libxml-tree.html#xmlSaveFile
Regards,
Kasimier
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]