Character encoding problem

2003-06-17 Thread Andrzej Zaryski
I've got big problem!!!

How to display simultaneously ISO-8859-2 characters on JSP page getting from DB and 
ApplicationResources.properties file?
When I set in my JSP <%response.setContentType("text/html; charset=iso-8859-2");%> 
then data from DB is displayed correctly, but all words from 
"ApplicationResources.properties" are ??. When I throw out response.setContentType 
from JSP, then DB data is ?, but from properties file everything is OK. 

I use TILES, so on layout.jsp page I've got entry   


Please help,
Thanks
PeterB

My configuration:
Oracle 8.1.7 - charset encoding ISO-8859-2
Resin 2.1.8
Struts 1.1 (with TILES)



Re: Tiles Menu and Character encoding problem

2003-01-06 Thread struts
No.

But U are right  if I use 
with the corect character font it works.

Thanx.


- Original Message -
From: "Cedric Dumoulin" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, January 06, 2003 6:35 PM
Subject: Re: Tiles Menu and Character encoding problem


>
>   Hi,
>
>   Have you specify the characters encoding at the beginning of your xml
> tiles config file:
> 
>
>Cedric
>
> Jim Theodoridis wrote:
>
> >Hi to all.
> >
> >I use the following definition about a menu on tiles-defs.xml
> >...
> >
> >  
> >
> >   > link="/index.jsp"
> >   classtype="org.apache.struts.tiles.beans.SimpleMenuItem" />
> >   > link="/index.jsp"
> >   classtype="org.apache.struts.tiles.beans.SimpleMenuItem" />
> >
> >
> >...
> >
> >I want to use Greek Characters on menu. But when use>value="Êõñßùò Ìåíïý" /> i am getting the following
> >error :
> >
> >javax.servlet.ServletException: Error while parsing file
> >'/WEB-INF/tiles-defs.xml'. Stopping after fatal error: An invalid XML
character
> >(Unicode: 0xdbfd) was found in the value of attribute "value".
> > at org.apache.struts.tiles.TilesPlugin.init(TilesPlugin.java:151)
> > at
>
>org.apache.struts.action.ActionServlet.initApplicationPlugIns(ActionServlet
.java
> >:991)
> >
> >
> >Also when i use Greek characters at the items of menu it displays ??
> >even i set corect character encoding at jsp.
> >
> >
> >Theodoridis Jim
> >
> >--
> >To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> >For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
> >
> >
> >
> >
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: Tiles Menu and Character encoding problem

2003-01-06 Thread Cedric Dumoulin

 Hi,

 Have you specify the characters encoding at the beginning of your xml 
tiles config file:


  Cedric

Jim Theodoridis wrote:

Hi to all.

I use the following definition about a menu on tiles-defs.xml
...

 
   
 
 
   

...

I want to use Greek Characters on menu. But when use   
value="Êõñßùò Ìåíïý" /> i am getting the following
error :

javax.servlet.ServletException: Error while parsing file
'/WEB-INF/tiles-defs.xml'. Stopping after fatal error: An invalid XML character
(Unicode: 0xdbfd) was found in the value of attribute "value".
	at org.apache.struts.tiles.TilesPlugin.init(TilesPlugin.java:151)
	at
org.apache.struts.action.ActionServlet.initApplicationPlugIns(ActionServlet.java
:991)


Also when i use Greek characters at the items of menu it displays ??
even i set corect character encoding at jsp.


Theodoridis Jim

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Tiles Menu and Character encoding problem

2003-01-06 Thread Jim Theodoridis
Hi to all.

I use the following definition about a menu on tiles-defs.xml
...

  

  
  


...

I want to use Greek Characters on menu. But when usei am getting the following
error :

javax.servlet.ServletException: Error while parsing file
'/WEB-INF/tiles-defs.xml'. Stopping after fatal error: An invalid XML character
(Unicode: 0xdbfd) was found in the value of attribute "value".
at org.apache.struts.tiles.TilesPlugin.init(TilesPlugin.java:151)
at
org.apache.struts.action.ActionServlet.initApplicationPlugIns(ActionServlet.java
:991)


Also when i use Greek characters at the items of menu it displays ??
even i set corect character encoding at jsp.


Theodoridis Jim

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Character encoding problem

2002-12-29 Thread Dan Tran
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" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Character encoding problem

2002-12-29 Thread struts struts
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:   
For additional commands, e-mail: 




Character encoding problem

2002-12-17 Thread Tuncay Baskan (İnternet Grubu)
Probably I have a configuration problem with struts.
Since my native language is Turkish :-), I use Turkish messages
in everywhere JSPs, Action classes etc. But when ActionError (or
any other tag that use MessageResources) display errors in JSPs
they look unreadable. 

For example, (sorry, probably you'll see some garbage)

errors.header=İşlem sırasında aşağıdaki hatalar oluştu:

is displayed like below:

??lem s?ras?nda a?a??daki hatalar olu?tu:


I tried to debug but couldn't find what is causing this. I think
there is a configuration option for this but where?

Btw, I'm developing on W2K with Tomcat 4.0.6. And default regional
setting is set to Turkish.

/tb.



character encoding problem

2002-04-26 Thread Peter Ondruska

Hi,

My problem 
(http://www.mail-archive.com/struts-user@jakarta.apache.org/msg28118.html) 
solution was an easy one. I made stupid mistake at used setter which 
re-encoded already properly encoded strings.

Peter

_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe, e-mail:   
For additional commands, e-mail: