Well to answer my own question: The source of the problem was found. A
compression filter (gzipping the response) seems to have been the
culprit.
-Original Message-
From: Seyed Razavi [mailto:[EMAIL PROTECTED]
Sent: 17 December 2003 17:37
To: [EMAIL PROTECTED]
Subject: Character
Hi Stephan,
The instruction you use to force UTF-8 looks fine to me, so I don't know why
it does not work. This is the way we do it in several web applications too.
They are non-public sites, so I am sorry I can not simply let you try them
out.
Manual transformation should not be necessary.
Hi Remke,
thanks for the link to the tool, quite useful. The header is correct in
my case, though.
Here is a simple source example:
String original = new String(A'lü[\u05E9]);
String out1 = new String(original.getBytes(), UTF8);
out.println(Original: + original + br /UTF-8: );
Sounds suspiciously like your database isn't configured for UTF-8
-Original Message-
From: Stephan Wiesner [mailto:[EMAIL PROTECTED]
Sent: 01 October 2003 09:13
To: Struts Users Mailing List
Subject: Re: Character Encoding
Hi Remke,
thanks for the link to the tool, quite useful
Hi Stephan,
I think the attachment got stripped off by the list server.
On 10/01/2003 11:12 AM Stephan Wiesner wrote:
Hi Remke,
thanks for the link to the tool, quite useful. The header is correct in
my case, though.
Here is a simple source example:
String original = new String(A'lü[\u05E9]);
Hmh, so it seems. Can't present the result in plain text, but the
results are wrong and the usage of new String(original.getBytes(),
UTF8); leads to a different result.
Adam Hardy wrote:
Hi Stephan,
I think the attachment got stripped off by the list server.
On 10/01/2003 11:12 AM Stephan
On a page encoded with UTF-8, I am showing the proper ü and presumably
the correct character after it on the 'original' line, but in the second
line, I just get ? for both.
On 10/01/2003 01:22 PM Stephan Wiesner wrote:
Hmh, so it seems. Can't present the result in plain text, but the
results
PS The second character looks like a U, but the left hand upright is forked.
On 10/01/2003 01:22 PM Stephan Wiesner wrote:
Hmh, so it seems. Can't present the result in plain text, but the
results are wrong and the usage of new String(original.getBytes(),
UTF8); leads to a different result.
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:
PROTECTED]]
Sent: 14 February 2002 08:40
To: Struts Users Mailing List
Cc: [EMAIL PROTECTED]
Subject: Re: Character Encoding wrong just for ApplicationResources!
Thanks for your response.
But I have already saved the ApplicationResource file in Unicode but the
same results!!
I have tried saving
your properties file have to be written in Unicode encoding, not the native
encoding, or else java will screw your characters up, since java can only deal
with unicode
Hertzel Karbasi - OPTinity eBusiness Solutions wrote:
Hello All
I have added the following to JSP files
META
or you can covert your properties file strings from native to unicode using this
method
return new String(oldString.getBytes(), encoding);
where encoding is the native encoding u used in your properties file
more 'bout charset encoding/decoding on this page :
Polish chars in index.jsp are in iso-8859-2 not UTF-8!
Arek
-Original Message-
From: wojtek [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 23, 2002 10:19 PM
To: Struts Users Mailing List
Subject: Re: CHARACTER ENCODING !
Here it goes,
thanks for help.
Wojtek
]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, January 23, 2002 10:05 PM
Subject: Re: CHARACTER ENCODING !
Ok Peter great, but I am using tomcat which gives this errror message when
setting encoding to utf-8
A Servlet Exception Has Occurred
of them is setCharacterEncoding
filter, which is what you need.
Feky
- Original Message -
From: timothy [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, January 24, 2002 4:02 AM
Subject: Re: CHARACTER ENCODING !
Hi Dennis Lee,
after you use
List [EMAIL PROTECTED]
Sent: Wednesday, January 23, 2002 10:51 AM
Subject: Re: CHARACTER ENCODING !
in JSP you should use page directive %@ page contentType=text/html;
charset=your encoding here %
and property files must be converted to acii (f.e. using
%JAVA_HOME%/bin/native2ascii.exe)
Feky
Mailing List [EMAIL PROTECTED]
Sent: Wednesday, January 23, 2002 10:51 AM
Subject: Re: CHARACTER ENCODING !
in JSP you should use page directive %@ page contentType=text/html;
charset=your encoding here %
and property files must be converted to acii (f.e. using
%JAVA_HOME%/bin/native2ascii.exe
)
at org.apache.jasper.compiler.JspReader.(Unknown Source)
at org.apache.jasper.compiler.Parser.(Unknown Source)
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, January 23, 2002 9:55 PM
Subject: RE: CHARACTER ENCODING !
i've tested this with german/french
To: Struts Users Mailing List
Subject: Re: CHARACTER ENCODING !
Ok Peter great, but I am using tomcat which gives this errror message when
setting encoding to utf-8
A Servlet Exception Has Occurred
org.apache.jasper.compiler.ParseException: Cannot read file: ze file
Here it goes,
thanks for help.
Wojtek
head.jsp
Description: Binary data
index.jsp
Description: Binary data
--
Myslisz o otworzeniu wlasnego sklepu internetowego?
A moze o wynajeciu stoiska w wirtualnym pasazu?
W Centrum e-biznesu mozesz miec jedno i drugie. Juz od 290 zl za rok.
Regards,
Dennis Lee
-Original Message-
From: Christopher Cheng [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 23, 2002 10:11 AM
To: Struts Users Mailing List
Cc: wojtek
Subject: RE: CHARACTER ENCODING !
Same here. I am building a site using English, Traditional and Simplified
Chinese
- Original Message -
From: Lee, Dennis [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, January 24, 2002 10:48 AM
Subject: RE: CHARACTER ENCODING !
Hi,
I have exactly the same problem.
I try to convert the chinese in the properties file
Wojtek
Are you setting locale with:
html:html locale=true
?
Rob Breeds
wojtek
23 matches
Mail list logo