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

Re: UTF-16 and MIME text/*

From: John Cowan <cowan@mercury.ccil.org>
Date: Wed, 23 May 2001 07:45:56 -0400 (EDT)
To: Bjoern Hoehrmann <derhoermi@gmx.net>
CC: www-international@w3.org, phoffman@imc.org
Message-Id: <E152X5Q-0003R8-00@mercury.ccil.org>
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.

-- 
John Cowan                                   cowan@ccil.org
One art/there is/no less/no more/All things/to do/with sparks/galore
	--Douglas Hofstadter
Received on Wednesday, 23 May 2001 07:46:10 GMT

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