W3C home > Mailing lists > Public > xmlschema-dev@w3.org > August 2003

Re: Schema in UTF-8 instance in UTF-16?

From: John Snelson <jpcs@decisionsoft.com>
Date: Thu, 28 Aug 2003 17:06:47 +0100
Message-ID: <3F4E2897.2000104@decisionsoft.com>
To: "'xmlschema-dev@w3.org'" <xmlschema-dev@w3.org>

You cannot mix UTF-8 and UTF-16 in the same file. However, if I 
understand you correctly, you won't need to. The schema file can be in 
UTF-8 quite happily, and this in no way means that the instance needs to 
also be in UTF-8.

UTF-8 and UTF-16 are different ways of encoding the same numeric 
information. Therefore, just because your schema specifies tag names in 
UTF-8, it does not mean that your instance document needs to use the 
same encoding. As long as the encoding results in the same numeric 
information as defined in your schema, you're ok.

John

-- 
John Snelson, Software Engineer        +44-1865-203192
DecisionSoft Limited                   http://www.decisionsoft.com
XML Development and Services
Received on Thursday, 28 August 2003 12:05:11 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:39 GMT