> + /* > + * Remove the charset param (if any) from the Content-Type, and use it > + * to set the response encoding. > + * The most recent response encoding setting will be appended to the > + * response Content-Type (as its charset param) by getContentType(); > + */ > + int beginCharsetValue = BEGIN_CHARSET_VALUE; > + int beginCharsetParam = contentType.indexOf(";charset="); > + if (beginCharsetParam == -1) { > + beginCharsetParam = contentType.indexOf("; charset="); > + beginCharsetValue++; > + }
Of course, this doesn't work if I do setContentType("text/html; charset=utf-8");. > + if (beginCharsetParam == -1) { > + // no charset > + this.contentType = contentType; > + return; > + }
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]