Re: [xml] xmllint: Why does it convert UTF-8 to numeric entity refs?
- From: Daniel Veillard <veillard redhat com>
- To: David Sewell <dsewell virginia edu>
- Cc: xml gnome org
- Subject: Re: [xml] xmllint: Why does it convert UTF-8 to numeric entity refs?
- Date: Mon, 4 Aug 2003 12:39:23 -0400
On Mon, Aug 04, 2003 at 12:22:03PM -0400, David Sewell wrote:
<test lang="français">UTF-8 character: ç</test>
<test lang="français">numeric ref: ç</test>
<test lang="français">entity ref: ç</test>
Is there any way to preserve the UTF-8 output?
No, it's totally equivalent from an XML point of view anyway.
(It would be nice to have an optional flag to xmllint allowing a choice
of output between characters and numeric refs.)
There is just too many option already, and this would require propagating
one more set of flags for the serialization routine. I see no justification
for adding more complexity to the serializer. The outputs are equivalent
anyway, as soon as the data is processed by an XML parser both version
cannot be distinguished,
Daniel
--
Daniel Veillard | Red Hat Network https://rhn.redhat.com/
veillard redhat com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]