Raghuveer wrote:
This is regarding the damage of polish messages from struts application
deployed on Tomcat on Linux and Windows XP .
I get polish messages from SAP that to be displayed in JSP page.
I have set ISO8859_2 in JSP page for charset.
<%@ page contentType="text/html;charset=ISO8859_2" %>
This tells the JSP engine what character encoding to use. Do you also
have an HTML meta http-equiv tag in the head of your page to tell the
browser what encoding it should use to process the page?
I have set encoding attribute in web.xml as below
<?xml version="1.0" encoding="ISO-8859-2"?>
Err, that just tells the servlet container what character encoding to
use when reading web.xml. Unless you need to include Polish language
text in your web.xml file, it's not relevant.
This is working on Windows XP.
But I get Question marks and differents characters for polish messages from
application deployed on Linux
Probably the Windows and Linux machines have different default (system)
locales configured and there is some point in your app where the default
character encoding is being used and needs to be specified explicitly.
Check if the Polish language data is being retrieved correctly from SAP
on the Linux deployment (i.e. is it correct when your action receives
it); failiing that, use Firebug or a packet sniffer like Ethereal to
look at what's going over the wire: is the HTTP response encoded correctly?
L.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]