Please review application/shf+xml

MURATA Makoto murata at hokkaido.email.ne.jp
Wed Oct 29 17:33:26 CET 2003


On Mon, 27 Oct 2003 18:06:46 +0100 (MET)
Linus Walleij <triad at df.lth.se> wrote:

> * We define that shf+xml will use UTF-8 and UTF-16 only, for reasons of
>   simplicty.

Which UTF-16?  Unfortunately, there are three charsets for UTF-16.  
They are "utf-16le", "utf-16be" and "utf-16" (see  RFC 2781).

Since this XML format describes hexadecimal data, almost every character 
is US-ASCII.  I wonder why we have to double the file size by representing 
a US-ASCII character with 16 bits.  1MB in UTF-8 becomes 2MB in UTF-16.

> * We define that in this case the "charset" parameter is omitted, for this
>   very reason.

If there is more than one choice, I do not think that this is a good reason 
to omit the charset parameter.

Cheers,

-- 
MURATA Makoto <murata at hokkaido.email.ne.jp>





More information about the Ietf-types mailing list