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.
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
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
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
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
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
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,
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
8 matches
Mail list logo