On 9/18/06 10:10 AM, "Yonik Seeley" <[EMAIL PROTECTED]> wrote:
> On 9/18/06, Walter Underwood <[EMAIL PROTECTED]> wrote:
>> Instead, use a media type of application/xml, so that the server
>> is allowed to sniff the content to discover the character encoding.
> 
> Cool!  Do you know what servlet containers currently implement this
> "sniffing"?

XML parsers already do this correctly. They look at the XML declaration
for the encoding, and if that isn't there, they look for a BOM or
UTF-8 content, as described in the (non-normative) appendix to the
XML spec.

  http://www.w3.org/TR/REC-xml/#sec-guessing

The servlet container needs to hand the raw bytes to the parser,
which should be normal behavior for application/*.

wunder
--
Walter Underwood
Search Guru, Netflix

Reply via email to