Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 20455 invoked by uid 500); 2 Jul 2001 13:42:42 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: tomcat-user@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 20333 invoked from network); 2 Jul 2001 13:42:40 -0000 Received: from gelincik.tr.net (HELO gelincik.trnet.com) (195.155.1.7) by h31.sny.collab.net with SMTP; 2 Jul 2001 13:42:40 -0000 Received: from [195.155.1.7] by gelincik.trnet.com (InterMail vK.4.02.00.09 201-232-116-109 license 0f5baaa7065154cd09644893d36baf5e) with SMTP id <20010702133425.EEI4922.gelincik@[195.155.1.7]> for ; Mon, 2 Jul 2001 16:34:25 +0300 X-Priority: From: To: tomcat-user@jakarta.apache.org Subject: RE: Character Encoding Problem Date: Mon, 2 Jul 2001 16:34:25 +0300 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-9 Content-Transfer-Encoding: 7bit Message-Id: <20010702133425.EEI4922.gelincik@[195.155.1.7]> X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N > > When reading bytes from file with FileReader the default character encoding > > is used. > > I think you must specify your own encoding when reading the file. > > > > I'll try that. But the same compiled classes and the same jdk version works well with Resin JSP Server and the files. The problem occurs with Tomcat. > Nay, still problems. A lot of ?'s in the visual output. Himpf. The point is, which is interesting, if a have an html form with ISO-8859-9 encoded chars, and post it to a jsp file, and write the parameters to a system text file, the text is correct!! The problem seems to occur during displaying strings obtained from inside a class .. Any other display problems with other character sets ?? .. Any more idea ?? .. Let's remember the problem. We cannot display ISO-8859-9 encoded string constants of a class, or strings read from a file, in jsp documents in correct encoding. Usage of <%@ page content-type does not solve Usage of javac -encoding does not solve Usage of encodings in file read/writes of java.io routines does not solve The problem is with Tomcat, no problems with Resin used in the same environment, OS/JDK. Arif ..