W3C home > Mailing lists > Public > www-international@w3.org > April to June 2001

Re: UTF-16 and MIME text/*

From: Chris Lilley <chris@w3.org>
Date: Thu, 07 Jun 2001 20:27:05 +0200
Message-ID: <3B1FC779.FDFCA599@w3.org>
To: John Cowan <cowan@mercury.ccil.org>
CC: Bjoern Hoehrmann <derhoermi@gmx.net>, www-international@w3.org, phoffman@imc.org


John Cowan wrote:
> 
> Bjoern Hoehrmann scripsit:
> 
> >    RFC 2871 registers all UTF-16 charsets (UTF-16BE, UTF-16LE and
> > UTF-16) as not suitable for use in MIME content types under the
> > "text" top-level type. Why?
> 
> Because a MIME processor, when encountering something of type text/*,
> is allowed to assume that any 0x0A byte means "LF" and any 0x0D byte means "CR",
> and to transmute them to some other kind of line ending.  UTF-16
> of whatever flavor violates this rule.

And thus, xml should never be served as text/xml ....

-- 
Chris
Received on Thursday, 7 June 2001 14:27:54 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 2 June 2009 19:16:56 GMT