Re: struts response character encoding.

2004-07-19 Thread Olve Sæther Hansen
sn, 18.07.2004 kl. 22.23 skrev Jason Lea: Olve Sther 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.

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

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 my

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

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 Sther Hansen [EMAIL PROTECTED] Intermedia/Aksis - Unifob AS

Re: struts response character encoding.

2004-07-18 Thread Jason Lea
Olve Sther 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 a

struts response character encoding.

2004-07-17 Thread Olve Sæther Hansen
I have some problems using struts/tiles and UTF-8 characters embedded in an jsp page. How can I make struts/tiles respect the system default encoding, and not use iso-8859-1 for all jsp pages? This problem occurs in tomcat 4.1.29, 5.0.19 and 5.0.27. I have a struts version bundled with Appfuse,

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