Can I set a charset on my response dynamically in a JSP?
I want to set the content type to have a charset that can
represent characters in a particular language in an I18N'ed
application--Big5, ISO-8859-5, etc.  Can I set this dynamically
from a request attribute i've set in a servlet or an object I've placed in
session from a servlet:

<% response.setContentType( "text/vnd.wap.wml; charset=" + charset ); %>

or must I set the charset to be one that can represent characters in all
languages I intend to support:

<%@ page contentType="text/vnd.wap.wml; charset=UTF-8" %>

?

thx,
p

--
// Paul Holser, Infrastructure Specialist
// Phone: 972.726.4560/1.800.OBJECT1 x4560
// E-mail: [EMAIL PROTECTED]
// ---------------------------------------
// ObjectSpace, Inc.
// The Leader in Business-to-Business Solutions
// http://www.objectspace.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to