tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 32500] - specific text-encoding ignored for dynamically generated text
Date Sat, 04 Dec 2004 21:54:49 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=32500>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32500





------- Additional Comments From allistair.crossley@qas.com  2004-12-04 22:54 -------
ok, i have tested this fully now. the reason your app is not working from the 
servlet side, regardless of database or no database, is because you O/S's 
locale/regional settings will be set such that the JVM Tomcat is using is 
defaulting character encoding for String creation (and other java.lang/java.io 
objects) to non-Hebrew support. Therefore you must either change your O/S 
locale so that the JVM defaults to Hebrew, OR you must convert your strings in 
the way you already found works, i.e new String("hebrew", "windows-1255");

Here is the reference:

"Every instance of the Java virtual machine has a default charset, which may 
or may not be one of the standard charsets. The default charset is determined 
during virtual-machine startup and typically depends upon the locale and 
charset being used by the underlying operating system."

http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/Charset.html

This is not an anomaly of Tomcat nor the Java language.

Cheers, hope this helps. Allistair.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message