You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Billy Ng <kw...@earthlink.net> on 2003/08/21 09:13:35 UTC

How to set charset UTF-8

Hi folks,

I added the following to test what encoding my Struts app is using

<%  
       response.setContentType("text/html; charset=UTF-8");
       System.out.println(response.getCharacterEncoding());
%>

But it still print out the "ISO-8859-1", why?  How can I set the contentType to "text/html; charset=UTF-8"

Thanks!

Billy Ng

----------------------------------------------------
This mailbox protected from junk email by Matador
from MailFrontier, Inc. http://info.mailfrontier.com