You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by struts struts <st...@tera.gr> on 2002/12/29 22:24:46 UTC
Character encoding problem
Hi.
I use Greek messages on every JSP page. These messages are in a file
application_el_GR.properties.
I use a file tiles-defs.xml for all my pages which i
use a Layout (for example classicLayout.jsp). In the classicLayout.jsp i
configure <%@ page contentType="text/html; charset=iso-8859-7" %> for display
Greek characters. Also i use the same configuration in every JSP page of
tiles-defs.xml
I 've connected on MySQL server where i use character-set=greek.
The problem is that the data from database is displayed in greek character set
the messages are displayed like ??? ????? ????????? ??????
When i remove the tag <%@ page contentType="text/html; charset=iso-8859-7" %>
from every page then the messages are displayed in greek character set
but the data from database where are greek characters are displayed as ??????
Is there a Struts configuration??
Thanx
Theodoridis Jim
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Character encoding problem
Posted by Dan Tran <da...@hotmail.com>.
I have seen the i18N problems several time last few days.
Here is the link and hope it helps
http://www.anassina.com/struts/i18n/i18n.html
You may need to get another database that support
Unicode which MySQL is not.
-Dan
----- Original Message -----
From: "struts struts" <st...@tera.gr>
To: <st...@jakarta.apache.org>
Sent: Sunday, December 29, 2002 1:24 PM
Subject: Character encoding problem
> Hi.
>
> I use Greek messages on every JSP page. These messages are in a file
> application_el_GR.properties.
> I use a file tiles-defs.xml for all my pages which i
> use a Layout (for example classicLayout.jsp). In the classicLayout.jsp i
> configure <%@ page contentType="text/html; charset=iso-8859-7" %> for
display
> Greek characters. Also i use the same configuration in every JSP page of
> tiles-defs.xml
>
> I 've connected on MySQL server where i use character-set=greek.
>
> The problem is that the data from database is displayed in greek character
set
> the messages are displayed like ??? ????? ????????? ??????
>
> When i remove the tag <%@ page contentType="text/html; charset=iso-8859-7"
%>
> from every page then the messages are displayed in greek character set
> but the data from database where are greek characters are displayed as
??????
>
> Is there a Struts configuration??
>
> Thanx
>
>
>
> Theodoridis Jim
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>