Please forgive me if this question turns out to be a matter of total
ignorance on my part, but I cannot understand the language of the 2.3 spec
in section 5.4 dealing with internationalization of the servlet response. It
contains this paragraph:

"For maximum benefit, the setLocale method should be called by the Developer
before the getWriter() method of the ServletResponse
interface is called.This will ensure that the returned PrintWriter is
configured appropriately for the target Locale."

There are two separate issues in this section that perhaps the spec means to
relate in a way that I am missing.

First issue is the intended audience of the response entity which is
specified by the Locale and which the container communicates to the user
agent via the Content-Language header.  Second issue is the charset
parameter of the Content-Type header which is really the character
encoding and tells the user agent how to transform the bytes of the
response entity into characters.

The question is how the container is expected to relate these two, if at
all.  If the servlet intends for any character encoding other than
ISO-8859-1 to be used then shouldn't she have to specify it using the
charset parameter of the content type?  Or does the spec mean to imply that
the container should examine the locale and attempt to choose one of the
ISO-8859-X character sets, adding a charset parameter to whatever content
type the servlet specifies?

Thanks in advance for any help,
-Garth

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to