> If it's XML then you are required to assume its UTF-8 unless you
> have indications to the contrary aren't you ? I thought that was
> part of the XML specification.
Answering my own email, from the specification:
"In the absence of information provided by an external transport
protocol (e.g. HTTP or MIME), it is a fatal error for an entity
including an encoding declaration to be presented to the XML processor
in an encoding other than that named in the declaration, or for an
entity which begins with neither a Byte Order Mark nor an encoding
declaration to use an encoding other than UTF-8. Note that since
ASCII is a subset of UTF-8, ordinary ASCII entities do not strictly
need an encoding declaration."
so if we have no BOM or encoding declaration we must assume UTF-8.
-bat.
_______________________________________________
Discuss-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnustep