Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@www.apache.org Received: (qmail 10342 invoked from network); 4 Dec 2004 21:55:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 4 Dec 2004 21:55:03 -0000 Received: (qmail 4239 invoked by uid 500); 4 Dec 2004 21:54:54 -0000 Delivered-To: apmail-jakarta-tomcat-dev-archive@jakarta.apache.org Received: (qmail 4219 invoked by uid 500); 4 Dec 2004 21:54:54 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 4204 invoked by uid 99); 4 Dec 2004 21:54:54 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received: from ajax-1.apache.org (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.28) with ESMTP; Sat, 04 Dec 2004 13:54:52 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (8.12.11/8.12.11) with ESMTP id iB4Lsn3v007536 for ; Sat, 4 Dec 2004 22:54:49 +0100 Received: (from nobody@localhost) by ajax.apache.org (8.12.11/8.12.11/Submit) id iB4Lsnk5007534; Sat, 4 Dec 2004 22:54:49 +0100 Date: Sat, 4 Dec 2004 22:54:49 +0100 Message-Id: <200412042154.iB4Lsnk5007534@ajax.apache.org> From: bugzilla@apache.org To: tomcat-dev@jakarta.apache.org Subject: DO NOT REPLY [Bug 32500] - specific text-encoding ignored for dynamically generated text X-Bugzilla-Reason: AssignedTo X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG� RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . 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