Re[2]: Unicode improvements

"Alexander J. Kozlovsky" <[email protected]>
Newsgroups gmane.comp.web.quixote.user
Message-ID <[email protected]>
Hello again!

>     The "charset" parameter is used with some media types to define
>     the character set (section 3.4) of the data. When no explicit
>     charset parameter is provided by the sender, media subtypes of
>     the "text" type are defined to have a default charset value of
>     "ISO-8859-1" when received via HTTP. Data in character sets
>     other than "ISO-8859-1" or its subsets MUST be labeled with an
>     appropriate charset value. See section 3.4.1 for compatibility
>     problems. 

I think, this paragraph has next meaning:

1. If user agent don't receive Content-Encoding header within
   response, then user agent SHOULD threat response encoding
   as "ISO-8859-1".

2. IF HTTP server send response encoded with "ISO-8859-1" then
   Content-Encoding header MAY be omitted, in other responses
   it is REQUIRED.

That's all

If response contains Content-Encoding header, Quixote may use any
appropriate encoding. If response text is unicode, then UTF-8 is
appropriate encoding. If Quixote send Content-Encoding header with
"UTF-8" encoding, it conforms HTTP standard.

That is, Hamish Lawson is correct:

> When charset has not been specified, Quixote is in fact faced
> with two different questions with respect to str and unicode
> objects... For unicode objects Quixote is deciding which encoding
> it *will* choose to use; ISO-8859-1 is a poor choice as it will be
> unable to encode the majority of Unicode character points;
> instead UTF-8 is a much more natural choice for unicode objects.


Best regards,
 Alexander                            mailto:[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.