Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: UTF-8 & Unicode

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

> On Fri, 4 Feb 2005, Henri Sivonen wrote:
> 
> >  "Alan J. Flavell" <flavell@p...> wrote:
> > 
> > > 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).
> > 
> > Such conversion leads to bugs like this one:
> > https://bugzilla.mozilla.org/show_bug.cgi?id=174351
> 
> Does it?  I'll have to ask you to explain that in more detail, please.  
> As far as I can see, the bug relates to a byte stream which is not 
> valid utf-8 - which by definition is therefore not utf-8 at all.
> 
> What I'm talking about is taking a properly-labelled and 
> properly-formed character stream in some known encoding, and
> transcoding that into properly-formed utf-8 (with appropriate 
> re-labelling, of course).

The problem is that the XML spec is not only concerned with proper UTF-8 
streams but also says what to do in improper cases. If the character 
encoding conversion is decoupled from the XML processor, but this is 
viewed as an implementation detail so that the combination of the 
converter and actual XML processor is subjected to the conformance 
requirements placed on XML processors, non-conformance ensues if the 
converter is lenient, which they usually are.

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


transparent
Print
Mail
Like It
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