J
Jay Brahms
Hi everyone.
I have a problem:
I am using tomcat 4.x and 5.x, trying to offer our websites in
different languages, also in (for example) polish and different
languages other then ISO-8859-1 (Latin-1).
the jsps and property-files are programmed in ISO-8859-1, the polish
translation of the used property-file (used for <bean:message />)
contains polish symbols (when using ISO-8859-1 in jsp, I can see the
right translation for the symbol in Latin-1, meaning not the polish
symbol).
I tried almost everything possible:
Changing the page-encoding using the <page-directive>:
<%@ page contentType="text/html; charset=iso8859-2"
pageEncoding="iso8859-1" %>
Using in jsp (especially because we have to change the encoding
dynamically):
<% response.setContentType("text/html; charset=ISO-8859-2"); %>
also including in html-header:
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-2">
But as soon as I change the 'charset' within the <page-directive> or
'content-type' of the response all polish characters are displayed as
'?' ....
I even changed my whole computer-settings to polish, system, browser,
keyboard, still all polish characters are displayed as '?'.
I tried saving the property-file in ISO-8859-2, but tomcat refused to
read it.
Can someone please help.
I need to be able to change dynamically the encoding of the page,
always depending on the translation and I cannot translate the
property-file (meaning all symbols within the file) into UTF-8. That is
not an option.
Thanx.
Jay.
I have a problem:
I am using tomcat 4.x and 5.x, trying to offer our websites in
different languages, also in (for example) polish and different
languages other then ISO-8859-1 (Latin-1).
the jsps and property-files are programmed in ISO-8859-1, the polish
translation of the used property-file (used for <bean:message />)
contains polish symbols (when using ISO-8859-1 in jsp, I can see the
right translation for the symbol in Latin-1, meaning not the polish
symbol).
I tried almost everything possible:
Changing the page-encoding using the <page-directive>:
<%@ page contentType="text/html; charset=iso8859-2"
pageEncoding="iso8859-1" %>
Using in jsp (especially because we have to change the encoding
dynamically):
<% response.setContentType("text/html; charset=ISO-8859-2"); %>
also including in html-header:
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-2">
But as soon as I change the 'charset' within the <page-directive> or
'content-type' of the response all polish characters are displayed as
'?' ....
I even changed my whole computer-settings to polish, system, browser,
keyboard, still all polish characters are displayed as '?'.
I tried saving the property-file in ISO-8859-2, but tomcat refused to
read it.
Can someone please help.
I need to be able to change dynamically the encoding of the page,
always depending on the translation and I cannot translate the
property-file (meaning all symbols within the file) into UTF-8. That is
not an option.
Thanx.
Jay.