Raghuveer wrote:
Hello Lauri,
This is with reference..
http://www.mail-archive.com/user@struts.apache.org/msg72782.html
[...]
response.getCharacterEncoding()is returning ISO-8859-1.
I have set it to charset - ISO-8859-2 in JSP pages but it is returning
“charset - ISO-8859-1”.
Then you have something missing somewhere; from my first reply which you
didn't answer:
> 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?
When the browser submits a form, it should use the character encoding of
the page that the form is in. If that's not working, start by fixing that.
Same thing is happening in windows and Linux.
It is working in windows with this conversion(convertTo_IS08559_2) but
failing in Linux..
As I said, the conversion code you have is semantically incorrect and
shouldn't be necessary anyway. Remove it and fix the issue above and see
where you are then.
L.
Regards,
Raghu
_____
From: Laurie Harper [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 19, 2008 4:24 AM
To: [EMAIL PROTECTED]
Subject: Re: i18N jsp application on linux and windows
Uh, yeah, I got that; that's why I've replied to you twice, on the list; see
also:
http://www.mail-archive.com/user@struts.apache.org/msg72782.html
Please follow up on-list if you need further help, to keep the discussion
where everyone can see it.
L.
On 18-Feb-08, at 8:50 AM, Raghuveer wrote:
I need an help related to i18n (internationalization),…
<http://www.mail-archive.com/user@struts.apache.org/msg72581.html>
http://www.mail-archive.com/user@struts.apache.org/msg72581.html
I am developing an application an struts application to be used in poland
for English,polish language on tomcat.
There is scenario to extract SAP messages and show to the user in browser in
JSP page.
I have written following method to read SAP message and Convert to
charsetThis is working for me on XP and Windows 2000 in Hyderabad.
IS0-559-2And in JSP pages
<%@ page contentType="text/html;charset=iso-8859-2" %>
But messages are corrupted some times and getting Question marks when
deployed and tested application in Poland on Linux.
Linux-
Nr potwierdzenia 8018340248 nie został znaleziony (proszę sprawdzić wpis)
Windows
Nr potwierdzenia 2222222222 nie zosta³ znaleziony (proszê sprawdziæ wpis)
-----------------------------
String convertTo_IS08559_2(HttpServletResponse response, StringstrMessage)
throws UnsupportedEncodingException{
String charset = response.getCharacterEncoding();
Log.info(CLASS_NAME +" - " +METHOD_NAME+" - charset -
"+charset);
try {
} catch (UnsupportedEncodingException e) {
//e.printStackTrace();
throw e;
}
return strFormatedMessage;
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]