Using Unicode in XML

From: Paul Deuter (
Date: Thu Jul 13 2000 - 11:52:36 EDT

I know that XML can contain Unicode by using the declaration

<?xl version="1.0" encoding="ISO-10646-UCS-2">

But there seems to be a chicken and egg dilemma here. If
I encode my whole XML stream as Unicode, then the parser
will need to know that the stream is Unicode in order to be able
to parse the declaration which tells it that it is Unicode.

If the parser cannot figure out that the stream is Unicode, then
it won't be able to read the declaration. But if it can recognize
the Unicode, then the declaration would seem to be superfluous.

How do systems handle this?


This archive was generated by hypermail 2.1.2 : Tue Jul 10 2001 - 17:21:05 EDT