arbitrary characters in XML document?

Kay Michael Michael.Kay at
Fri Sep 3 16:45:38 BST 1999

> Hi,  I have a question about dealing with multiple character sets.
> I have an application where I want to store data in XML and retrieve
> it later.  Now a good chunk of the data I want to store is coming
> straight from the user and I have little control over exactly which
> character set the user is using. 

If you don't know or care what the encoding is, then you are not storing
characters, you are storing bytes, and you should handle it the same way as
other binary data, e.g. in Base64 encoding. Otherwise bytes like x03 that
are not legal XML characters will floor you.

Mike Kay

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at
Archived as: and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo at the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at

More information about the Xml-dev mailing list