Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: UTF-8 & Unicode

From: Henri Sivonen <hsivonen@---.-->
To: NULL
Date: 2/4/2005 5:15:00 PM
In article <Pine.LNX.4.61.0502021006440.5995@p...>,
 "Alan J. Flavell" <flavell@p...> wrote:

> The /conclusions/ are fine, in their way:
> 
>     * Use an editor that supports encoding.
>     * Make sure you know what encoding it uses.
>     * Use the same encoding attribute in your XML documents.

That is not a safe conclusion. XML processors are only required to 
support UTF-8 and UTF-16. Support for any other encoding is an XML 
processor-specific extra feature. It follows that using any encoding 
other than UTF-8 or UTF-16 is unsafe. If communication fails, because 
someone sent an XML document in an encoding other than UTF-8 or UTF-16, 
the sender is to blame.

This simplifies to a rule of thumb:
When producing XML, always use UTF-8 (and Unicode Normalization Form C). 
Those who absolutely insist on using UTF-16 can use UTF-16 instead of 
UTF-8.

-- 
Henri Sivonen
hsivonen@i...
http://iki.fi/hsivonen/
Mozilla Web Author FAQ: http://mozilla.org/docs/web-developer/faq.html


transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent