Re: UTF-16 and MIME text/*

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 UTC