You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by carlo latasa <c_...@hotmail.com> on 2004/03/23 07:03:07 UTC
i18n with Japanese characters and tags....
Hello,
I'm trying to show Japanese characters on my jsp pages however the "&"
character of the charset is coming back as & which is preventing the
characters from being displayed correctly. They look like:
キカスハ
Note, the bean:write tag renders the characters correctly when the filter
attribute is set to "false".
I've got a struts application using both Tomcat and Jrun and I've set my
controller element of the struts-config.xml as:
<controller contentType="text/html; charset=JISAutoDetect"/>
and at the top of a tiles.jsp that's at the head of every page I've got a:
<%@ page contentType="html/text; charset=JISAutoDetect" %>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=JISAutoDetect"
%>
..... to set the encoding.
My hunch is that this is something that Struts is doing to the in the
RequestProcessor or Controller.
Could/should I write a Filter to override this issue?
Is this something I chould set in a .css called in the tiles.jsp?
Any help is much appreciated.
Carlo Latasa -
_________________________________________________________________
Find a broadband plan that fits. Great local deals on high-speed Internet
access. http://click.atdmt.com/AVE/go/onm00200360ave/direct/01/
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: i18n with Japanese characters and tags....
Posted by at...@cocoa.freemail.ne.jp.
Carlo,
Have you checked the example application included in Struts1.1(or
current CVS)? It can show Japanese characters correctly without any
special implementations.
I think it will be a help for your problem.
The most frequent mistake in such case is lack of unicode escape
to their message resource files.
Don't forget "native2ascii" when you make your resource files.
see also : http://www.anassina.com/struts/i18n/i18n.html
----
Yoshinori Ashizawa
Ja-Jakarta Project www.jajakarta.org
carlo latasa" <c_...@hotmail.com> wrote:
> Hello,
>
> I'm trying to show Japanese characters on my jsp pages however the "&"
> character of the charset is coming back as & which is preventing the
> characters from being displayed correctly. They look like:
> キカスハ
>
> Note, the bean:write tag renders the characters correctly when the filter
> attribute is set to "false".
>
> I've got a struts application using both Tomcat and Jrun and I've set my
> controller element of the struts-config.xml as:
>
> <controller contentType="text/html; charset=JISAutoDetect"/>
>
> and at the top of a tiles.jsp that's at the head of every page I've got a:
>
> <%@ page contentType="html/text; charset=JISAutoDetect" %>
>
> <head>
> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=JISAutoDetect"
> %>
>
> ..... to set the encoding.
>
> My hunch is that this is something that Struts is doing to the in the
> RequestProcessor or Controller.
> Could/should I write a Filter to override this issue?
>
> Is this something I chould set in a .css called in the tiles.jsp?
>
> Any help is much appreciated.
>
>
> Carlo Latasa -
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org