Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: UTF-8 & Unicode

From: "Alan J. Flavell" <flavell@--.---.--.-->
To: NULL
Date: 2/4/2005 3:39:00 PM
On Fri, 4 Feb 2005, Henri Sivonen wrote:

>  "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.

I guess that was one of the penalties of responding to a cross-posted
article.

> XML processors are only required to 
> support UTF-8 and UTF-16. Support for any other encoding is an XML 
> processor-specific extra feature.

But that's OK, since any plausible encoding produced by the editor can 
be transformed by rote into utf-8 prior to subsequent XML processing 
(that's the XML relevance).  And pretty much any plausible encoding 
produced by an editor that's meant for WWW use, is going to be 
supported by the available web browsers (that's the c.i.w.a.h 
relevance).

> It follows that using any encoding other than UTF-8 or UTF-16 is 
> unsafe.

I take your point, but again: as long as the document is correctly 
labelled, it can be transformed by rote into utf-8, it needs no 
special heuristics, nor does it run risks of being damaged in the 
process.

all the best



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