Magnus Björkman wrote:
>
> In a servlet it is possible to create the PrintWriter the way I want but
> how do I set the PrintWriter in JSP 0.92 to:
>
> PrintWriter out = new PrintWriter(new
> OutputStreamWriter(response.getOutputStream(), "UTF-8"), true);
>
> Is it possible?
Let the JSP container do it for you. You just have to specify the correct
content type:
<%@ page contentType="text/html;charset=UTF-8" %>
When the JSP container creates the Writer used to send the response body
it uses the charset specified in the content type.
Hans
--
Hans Bergsten [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html