Re: struts response character encoding.

2004-07-19 Thread Olve Sæther Hansen
man, 19.07.2004 kl. 14.58 skrev Emmanouil Batsis: > There this system property you can set but I can't remember it, it's > used as the encoding to use when reading files... > > Anyway, I always edit my .jsp and .properties using UTF-8, then pass > them through the native2ascii ant task during m

Re: struts response character encoding.

2004-07-19 Thread Emmanouil Batsis
There this system property you can set but I can't remember it, it's used as the encoding to use when reading files... Anyway, I always edit my .jsp and .properties using UTF-8, then pass them through the native2ascii ant task during my build. It's just a wrapper for the same-named JDK binary;

Re: struts response character encoding.

2004-07-19 Thread Olve Sæther Hansen
sÃn, 18.07.2004 kl. 22.23 skrev Jason Lea: > Olve SÃther Hansen wrote: > > >Now I am saying false things. I thought my baseLayout.jsp had this > >entry.. It didn't. > > > >So it is enough specifying > ><%@ page contentType="text/html; charset=UTF-8"%> > >in the base tiles file if that architectur

Re: struts response character encoding.

2004-07-18 Thread Jason Lea
Olve SÃther Hansen wrote: Now I am saying false things. I thought my baseLayout.jsp had this entry.. It didn't. So it is enough specifying <%@ page contentType="text/html; charset=UTF-8"%> in the base tiles file if that architecture is used. I think it that should work. But I think I ran into

Re: struts response character encoding.

2004-07-18 Thread Olve Sæther Hansen
Now I am saying false things. I thought my baseLayout.jsp had this entry.. It didn't. So it is enough specifying <%@ page contentType="text/html; charset=UTF-8"%> in the base tiles file if that architecture is used. -- Olve SÃther Hansen <[EMAIL PROTECTED]> Intermedia/Aksis - Unifob AS --

Re: struts response character encoding.

2004-07-18 Thread Olve Sæther Hansen
Thanks a lot. I was under the misconception that it was sufficient to encode the baseLayout.jsp I use in tiles with this line. Now I understand that tiles has to knwo the encoding of every file in which it has control over.. I guess the other solution also works well, but I use xdoclet, and henc

Re: struts response character encoding.

2004-07-17 Thread Jason Lea
iso-8859-1 is the default page encoding for web pages. To use anything else you need to tell the webserver. Use this at the top of every jsp page: <%@ page contentType="text/html; charset=UTF-8"%> Or for Tomcat 5 you can use Servelt 2.4/JSP2.0 spec and set the page encoding in the web.xml