----- Original Message ----- 
From: "Remy Maucherat" <[EMAIL PROTECTED]>
To: "Tomcat Developers List" <[EMAIL PROTECTED]>
Sent: Sunday, November 16, 2003 3:05 AM
Subject: Re: cvs commit:
jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote Response.java


> [EMAIL PROTECTED] wrote:
> > billbarker    2003/11/15 21:20:23
> >
> > Modified:    coyote/src/java/org/apache/coyote Response.java Log:
> > Restore the ability to explicitly set the charset to iso-latin-1.
> >
> > Now, you won't get the charset unless you ask for it (so no more
> > Content-Type: image/gif; charset=iso-8859-1).  However, if you call
> > response.setCharacterEncoding("iso-9959-1"), you now get it in the
> > respose.
>
> Constants.DEFAULT_CHARACTER_ENCODING is equal to iso-9959-1, so I do not
> understand how my patch prenvented setting the charset to iso-latin-1.
>
> At this point, if we could avoid gratuitous fancy fixes, it would be a
> lot better ...
>

If I explicitly call response.setCharacterEncoding("iso-8859-1"), it means I
expect that the charset will be in the Content-Type header.  If it is not
sent, then non-western-european browsers are likely to mangle my page by
using whatever their default encoding is.  Of course, iso-latin-1 is just a
standard alias for iso-8859-1.

> Remy
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>

This message is intended only for the use of the person(s) listed above as the 
intended recipient(s), and may contain information that is PRIVILEGED and 
CONFIDENTIAL.  If you are not an intended recipient, you may not read, copy, or 
distribute this message or any attachment. If you received this communication in 
error, please notify us immediately by e-mail and then delete all copies of this 
message and any attachments.

In addition you should be aware that ordinary (unencrypted) e-mail sent through the 
Internet is not secure. Do not send confidential or sensitive information, such as 
social security numbers, account numbers, personal identification numbers and 
passwords, to us via ordinary (unencrypted) e-mail.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to