Problems with utf-8 encoding

2005-09-19 Thread Yair Zohar
Hello, I'm using Tomcat 4.1.18 I'm trying to read hebrew data in utf-8 encoding from the database. As a check I entered a utf-8 encoded 'alef' letter to the database field. (I see it in the database as one letter 'alef'). The jsp page that displays the data, prints two chars instead of one. I

Problems with utf-8 encoding - continue

2005-09-19 Thread Yair Zohar
sorry for the double mail, I forgot to add my server.xml encoding definitions: Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8080 URIEncoding=UTF-8 useBodyEncodingForURI=true minProcessors=5 maxProcessors=75 enableLookups=true

Re: Problems with utf-8 encoding

2005-09-19 Thread Anto Paul
On 9/19/05, Yair Zohar [EMAIL PROTECTED] wrote: Hello, I'm using Tomcat 4.1.18 I'm trying to read hebrew data in utf-8 encoding from the database. As a check I entered a utf-8 encoded 'alef' letter to the database field. (I see it in the database as one letter 'alef'). The jsp page

Re: Problems with utf-8 encoding

2005-09-19 Thread Yair Zohar
Anto Paul wrote: On 9/19/05, Yair Zohar [EMAIL PROTECTED] wrote: Hello, I'm using Tomcat 4.1.18 I'm trying to read hebrew data in utf-8 encoding from the database. As a check I entered a utf-8 encoded 'alef' letter to the database field. (I see it in the database as one letter 'alef

Re: Problems with utf-8 encoding - continue

2005-09-19 Thread Jilles van Gurp
Why aren't you using setContentType(text/html, utf-8) on the response? What content-type is the server actually returning (use the live http headers extension for firefox or something similar to find out). What database and jdbc driver are you using? What method are you using to store the

Re: Problems with utf-8 encoding

2005-09-19 Thread Anto Paul
, I'm using Tomcat 4.1.18 I'm trying to read hebrew data in utf-8 encoding from the database. As a check I entered a utf-8 encoded 'alef' letter to the database field. (I see it in the database as one letter 'alef'). The jsp page that displays the data, prints two chars instead of one. I checked

Re: Problems with utf-8 encoding - continue

2005-09-19 Thread Christoph Kutzinski
Jilles van Gurp wrote: Oracle on the other hand cannot insert strings larger than 4KB with setString so you need to use setCharacterStream. FYI: This is common knowledge that used to be right, but isn't anymore. With the Oracle 10g JDBC driver you can set arbitrary length strings with

RE: Problems with utf-8 encoding

2005-09-19 Thread Guy Katz
put an encoding filter in front of your servlet/jsp's that sets a UTF-8 encoding for incoming requests and outgoing responses. its your safest bet for tomcat 4 as far as i remember. -Original Message- From: Yair Zohar [mailto:[EMAIL PROTECTED] Sent: Monday, September 19, 2005 9:43 AM

Re: Problems with utf-8 encoding - continue

2005-09-19 Thread Yair Zohar
Jilles van Gurp wrote: Why aren't you using setContentType(text/html, utf-8) on the response? As I use jsp, I don't know how can I control the response that way. What content-type is the server actually returning (use the live http headers extension for firefox or something similar to

Re: Problems with utf-8 encoding

2005-09-19 Thread Yair Zohar
Guy Katz wrote: put an encoding filter in front of your servlet/jsp's that sets a UTF-8 encoding for incoming requests and outgoing responses. its your safest bet for tomcat 4 as far as i remember. -Original Message- From: Yair Zohar [mailto:[EMAIL PROTECTED] Sent: Monday, September

RE: Problems with utf-8 encoding

2005-09-19 Thread Guy Katz
google it. there's a lot. -Original Message- From: Yair Zohar [mailto:[EMAIL PROTECTED] Sent: Monday, September 19, 2005 11:08 AM To: Tomcat Users List Subject: Re: Problems with utf-8 encoding Guy Katz wrote: put an encoding filter in front of your servlet/jsp's that sets a UTF-8

Re: Problems with utf-8 encoding

2005-09-19 Thread Yair Zohar
Guy Katz wrote: google it. there's a lot. -Original Message- From: Yair Zohar [mailto:[EMAIL PROTECTED] Sent: Monday, September 19, 2005 11:08 AM To: Tomcat Users List Subject: Re: Problems with utf-8 encoding Guy Katz wrote: put an encoding filter in front of your servlet/jsp's

Re: Problems with utf-8 encoding

2005-09-19 Thread Yair Zohar
Yair Zohar wrote: Guy Katz wrote: google it. there's a lot. -Original Message- From: Yair Zohar [mailto:[EMAIL PROTECTED] Sent: Monday, September 19, 2005 11:08 AM To: Tomcat Users List Subject: Re: Problems with utf-8 encoding Guy Katz wrote: put an encoding filter in front

Tomcat 5.0.30 - UTF-8 encoding not working

2005-06-02 Thread Karanjkar, Sanjay V \(IT\)
Hi msjava, I'm trying to migrate our webapp from ServletExec4.1.1/JDK1.3.1 to Tomcat5.0.30/JDK1.4.2. On ServletExec, our app was showing/saving UTF-8 strings correctly. However, after migration to Tomcat, the pages are not showing UTF-8 encoded content correctly. All our JSP pages contain the

Re: Tomcat 5.0.30 - UTF-8 encoding not working

2005-06-02 Thread Mark Thomas
Karanjkar, Sanjay V (IT) wrote: Hi msjava, I'm trying to migrate our webapp from ServletExec4.1.1/JDK1.3.1 to Tomcat5.0.30/JDK1.4.2. On ServletExec, our app was showing/saving UTF-8 strings correctly. However, after migration to Tomcat, the pages are not showing UTF-8 encoded content

RE: Tomcat 5.0.30 - UTF-8 encoding not working

2005-06-02 Thread Karanjkar, Sanjay V \(IT\)
[mailto:[EMAIL PROTECTED] Sent: Friday, June 03, 2005 12:27 AM To: Tomcat Users List Subject: Re: Tomcat 5.0.30 - UTF-8 encoding not working Karanjkar, Sanjay V (IT) wrote: Hi msjava, I'm trying to migrate our webapp from ServletExec4.1.1/JDK1.3.1 to Tomcat5.0.30/JDK1.4.2. On ServletExec, our

RE: Tomcat 5.0.30 - UTF-8 encoding not working

2005-06-02 Thread Karanjkar, Sanjay V \(IT\)
, 2005 10:44 AM To: Tomcat Users List; [EMAIL PROTECTED] Subject: RE: Tomcat 5.0.30 - UTF-8 encoding not working Hi, Apologies, my previous mail was missing a few things... Correction - Tomcat *does* show UTF-8 encoded data correctly (after fetching from the database). It also saves UTF-8 encoded

RE: tomcat 5 and UTF-8 encoding

2004-12-07 Thread Allistair Crossley
: tomcat 5 and UTF-8 encoding Sarah, I recall a post a week or so ago regarding the contentType string losing the space after the ; This may be causing the issue. PJ Sarah wrote: Hi, I need to use jsp to display some data in Japanese character from MS SQL server database. I

RE: tomcat 5 and UTF-8 encoding

2004-12-07 Thread Shapira, Yoav
: RE: tomcat 5 and UTF-8 encoding someone else had a similar issue with hebrew and you can read what happened here: http://issues.apache.org/bugzilla/show_bug.cgi?id=32500 Allistair. -Original Message- From: Peter Johnson [mailto:[EMAIL PROTECTED] Sent: 07 December 2004 03:41

tomcat 5 and UTF-8 encoding

2004-12-06 Thread Sarah
Hi, I need to use jsp to display some data in Japanese character from MS SQL server database. I have already set the encoding in jsp to be: %@ page language=java contentType=text/html; charset=UTF-8 % If I use tomcat version 5.0.18, then the japanese character is displayed correctly.

Re: tomcat 5 and UTF-8 encoding

2004-12-06 Thread Peter Johnson
Sarah, I recall a post a week or so ago regarding the contentType string losing the space after the ; This may be causing the issue. PJ Sarah wrote: Hi, I need to use jsp to display some data in Japanese character from MS SQL server database. I have already set the encoding in jsp to be: %@

Re: UTF-8 Encoding in Jsp | RESOLVED

2004-12-03 Thread Andoni
Sent: Thursday, December 02, 2004 2:08 PM Subject: RE: UTF-8 Encoding in Jsp | RESOLVED Hi, Thanks for posting your findings ;) Yoav Shapira http://www.yoavshapira.com -Original Message- From: Arnab Chakravarty [mailto:[EMAIL PROTECTED] Sent: Thursday, December 02, 2004 9:03 AM

RE: UTF-8 Encoding in Jsp | RESOLVED

2004-12-02 Thread Arnab Chakravarty
List Subject: RE: UTF-8 Encoding in Jsp Hi, Thanks for the reply but it did not work. May be I didn't explain the problem correctly. I am running an application that supports all the languages but only in some specific places of the application and I have made those places UTF-8 complaint. Further

RE: UTF-8 Encoding in Jsp | RESOLVED

2004-12-02 Thread Shapira, Yoav
Hi, Thanks for posting your findings ;) Yoav Shapira http://www.yoavshapira.com -Original Message- From: Arnab Chakravarty [mailto:[EMAIL PROTECTED] Sent: Thursday, December 02, 2004 9:03 AM To: Tomcat Users List Subject: RE: UTF-8 Encoding in Jsp | RESOLVED Hi all, First of all

RE: UTF-8 Encoding in Jsp

2004-12-01 Thread Arnab Chakravarty
(Oracle 9). When we are reading the data back from the database, junk characters are displayed on the screen. Yes, the database is set to support UTF-8 Encoding and this is working with the old version of tomcat 3.3 and not with current upgraded version of tomcat 5.0 There are also places

RE: UTF-8 Encoding in Jsp

2004-12-01 Thread Allistair Crossley
: UTF-8 Encoding in Jsp Hi, Thanks for the reply but it did not work. May be I didn't explain the problem correctly. I am running an application that supports all the languages but only in some specific places of the application and I have made those places UTF-8 complaint

Re: UTF-8 Encoding in Jsp

2004-12-01 Thread Andoni
strenuously suggest making ALL the pages/servlets UTF-8. Regards, Andoni. - Original Message - From: Arnab Chakravarty [EMAIL PROTECTED] Newsgroups: gmane.comp.jakarta.tomcat.user Sent: Wednesday, December 01, 2004 10:37 AM Subject: RE: UTF-8 Encoding in Jsp Hi, Thanks for the reply

UTF-8 Encoding in Jsp

2004-11-30 Thread Arnab Chakravarty
Hi all, I need to make my all jsp files compatible with UTF-8 Encoding and even though I am using the directives: %@ page pageEncoding=UTF-8% %@ page contentType = text/html;charset=UTF-8% in the jsp files, cannot make it work. Using tomcat version 5. Is there any config changes I need to make

Re: UTF-8 Encoding in Jsp

2004-11-30 Thread Andoni
does the same job in servlets. Andoni. - Original Message - From: Arnab Chakravarty [EMAIL PROTECTED] Newsgroups: gmane.comp.jakarta.tomcat.user Sent: Tuesday, November 30, 2004 2:28 PM Subject: UTF-8 Encoding in Jsp Hi all, I need to make my all jsp files compatible with UTF-8

RE: UTF-8 Encoding in Jsp

2004-11-30 Thread Mariano
: martes, 30 de noviembre de 2004 15:28 Para: Tomcat Users List Asunto: UTF-8 Encoding in Jsp Hi all, I need to make my all jsp files compatible with UTF-8 Encoding and even though I am using the directives: %@ page pageEncoding=UTF-8% %@ page contentType = text/html;charset=UTF-8% in the jsp

RE: UTF-8 Encoding Issue Since 5.0.27 ( gun in my mouth )

2004-09-02 Thread Rick
- From: Mark Thomas [mailto:[EMAIL PROTECTED] Posted At: Wednesday, September 01, 2004 4:14 PM Posted To: Tomcat Dev Conversation: UTF-8 Encoding Issue Since 5.0.27 ( gun in my mouth ) Subject: RE: UTF-8 Encoding Issue Since 5.0.27 ( gun in my mouth ) OK. I have a simple test case and all seems

RE: UTF-8 Encoding Issue Since 5.0.27 ( gun in my mouth )

2004-09-01 Thread Mark Thomas
and put together a very simple JSP test case and get back to you. Mark -Original Message- From: Rick [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 01, 2004 3:44 AM To: 'Tomcat Users List'; [EMAIL PROTECTED] Subject: UTF-8 Encoding Issue Since 5.0.27 ( gun in my mouth ) Since

RE: UTF-8 Encoding Issue Since 5.0.27 ( gun in my mouth )

2004-09-01 Thread Mark Thomas
OK. I have a simple test case and all seems to be well. See the end of this message for the contents of my test files. My environment: Win XP SP2 - brave I know but all has been OK so far ;) JDK 1.4.2_05 Tomcat 5.0 branch, HEAD (latest) from CVS (very close to 5.0.28) Points to note: 1. All my

UTF-8 Encoding Issue Since 5.0.27 ( gun in my mouth )

2004-08-31 Thread Rick
Since 5.0.27, pretty much all of my UTF-8 i8 code seems to be messed up. The problem seems to have been caused by whatever fix was created for issue -- ServletResponse.setContentType sets response encoding after getWriter was called (Bugtraq 5062838) (luehe)

Re: UTF-8 encoding

2004-04-07 Thread Harry Mantheakis
Hello Nikki Just send UTF8 encoded data and everything will be allright. Yes, that seems to work for me at the moment, though I am relying on default settings because I do not even specify UTF-8. (Java defaults to Unicode anyway.) I'm only using LATIN-1 characters at the moment, so I cannot

Re: UTF-8 encoding

2004-04-06 Thread Niki Ivanchev
not seem to address the original question, which was asking how to 'force tomcat to send data in UTF-8 encoding'. Interesting filter nevertheless! It is a subject that concerns me. Kind regards Harry Hi, implement a EncodingFilter class Where's the interface

UTF-8 encoding

2004-04-05 Thread b . somer
Hi! I have a web-application which on the serverside needs UTF-8 encoding. I tried to install and run apache/tomcat on a Windows-XP environment, and the server says, the encoding is not UTF-8. same applicationwith the same apache/tomcat version runs correctly on a windows 2000 environment

RE: UTF-8 encoding

2004-04-05 Thread Yansheng Lin
Hi, you can specify the utf-8 encoding with a filter. All you need to do is implement a EncodingFilter class, and then in your deployment descriptor add the filter element as follows: filter filter-nameEncodingFilter/filter-name display-nameEncodingFilter/display-name

Re: UTF-8 encoding

2004-04-05 Thread Harry Mantheakis
implement a EncodingFilter class Where's the interface? Hi, you can specify the utf-8 encoding with a filter. All you need to do is implement a EncodingFilter class, and then in your deployment descriptor add the filter element as follows: filter filter-nameEncodingFilter/filter

RE: UTF-8 encoding

2004-04-05 Thread Shapira, Yoav
Hi, implement a EncodingFilter class Where's the interface? javax.servlet.Filter is the interface. He probably had http://java.sun.com/blueprints/code/jps131/api/com/sun/j2ee/blueprints/e ncodingfilter/web/EncodingFilter.html in mind. Yoav Shapira This e-mail, including any attachments,

RE: UTF-8 encoding

2004-04-05 Thread Shapira, Yoav
javax.servlet.Filter is the interface. He probably had http://java.sun.com/blueprints/code/jps131/api/com/sun/j2ee/blueprints/ e ncodingfilter/web/EncodingFilter.html in mind. BTW, swap .java for .html (or google with the above) to see the full java source code for the blueprint encoding

Re: UTF-8 encoding

2004-04-05 Thread Harry Mantheakis
to address the original question, which was asking how to 'force tomcat to send data in UTF-8 encoding'. Interesting filter nevertheless! It is a subject that concerns me. Kind regards Harry Hi, implement a EncodingFilter class Where's the interface? javax.servlet.Filter

UTF-8 encoding problem with file included using jsp:include

2003-12-23 Thread Camilla Clifford
Hello, I have a jsp page with the following code at the top of the page, in order to display the page contents in UTF-8: %@ page contentType=text/html; charset=UTF-8 % % response.setContentType(text/html; charset=UTF-8); % In this page is a jsp:include tag that includes a static html file, the

Setting UTF-8 Encoding

2003-01-31 Thread Affan Qureshi
I am having trouble setting the encoding to UTF-8 and hence my web pages are unable to render characters like the Trademark or Copyright symbols. In Tomcat's source at various places teh character encoding is hard-coded to be ISO-8859-1. I have tried to use the filter in the examples to set the

Re: Setting UTF-8 Encoding

2003-01-31 Thread Affan Qureshi
I forgot to paste my code which is there at the bottom now. I am having trouble setting the encoding to UTF-8 and hence my web pages are unable to render characters like the Trademark or Copyright symbols. In Tomcat's source at various places teh character encoding is hard-coded to be

Re: Setting UTF-8 Encoding

2003-01-31 Thread Masood Ahmed
Have you tried setting the locale directly on the request object? See if that helps. What version of tomcat are you using? thanks, -Masood --- Affan Qureshi [EMAIL PROTECTED] wrote: I forgot to paste my code which is there at the bottom now. I am having trouble setting the encoding to

Re: Setting UTF-8 Encoding

2003-01-31 Thread Affan Qureshi
marks in place of those characters. However, the same JSP code works in for Resin and Weblogic. Baffled Affan - Original Message - From: Masood Ahmed [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, January 31, 2003 5:13 PM Subject: Re: Setting UTF-8 Encoding

RE: Setting UTF-8 Encoding

2003-01-31 Thread Daniel Brown
Qureshi [mailto:[EMAIL PROTECTED]] Sent: 31 January 2003 11:38 To: Tomcat Users List Subject: Setting UTF-8 Encoding I am having trouble setting the encoding to UTF-8 and hence my web pages are unable to render characters like the Trademark or Copyright symbols. In Tomcat's source at various

Re: Setting UTF-8 Encoding

2003-01-31 Thread Affan Qureshi
JSPWriter uses the system settings of the Locale or something. Nasty problem isn't it? HTH, Dan. Affan -Original Message- From: Affan Qureshi [mailto:[EMAIL PROTECTED]] Sent: 31 January 2003 11:38 To: Tomcat Users List Subject: Setting UTF-8 Encoding I am having

RE: Setting UTF-8 Encoding

2003-01-31 Thread Ralph Einfeldt
to be the cause of the problem. My guess is, that it is #2 that is causing the pain. -Original Message- From: Affan Qureshi [mailto:[EMAIL PROTECTED]] Sent: Friday, January 31, 2003 1:47 PM To: Tomcat Users List Subject: Re: Setting UTF-8 Encoding Locale object is set to to en_US

Re: Setting UTF-8 Encoding

2003-01-31 Thread Affan Qureshi
PROTECTED] Sent: Friday, January 31, 2003 5:50 PM Subject: RE: Setting UTF-8 Encoding Affan, The encoding is set just fine. If I copy and paste your JSP, and run it here, I get the following as the content type in the HTTP headers: Content-Type: text/html; charset=UTF-8 You're seeing empty

Switching on UTF-8 Encoding

2002-02-07 Thread Antony Stace
Hi What do I need to do so that data returned from Tomcat 4 is returned in UTF-8 encoding to a requesting browser and requests received are read as UTF-8. -- Cheers Tony。

Re: Switching on UTF-8 Encoding

2002-02-07 Thread jeff . guttadauro
You can use %@ page contentType="text/html;charset=UTF-8" % in the JSP or alternatively include the META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8" tag in your HTML. This will tell the browser to use the UTF-8 Encoding. Then when ge

Re: Switching on UTF-8 Encoding

2002-02-07 Thread Craig R. McClanahan
On Thu, 7 Feb 2002, Antony Stace wrote: Date: Thu, 7 Feb 2002 22:45:23 +0900 From: Antony Stace [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Switching on UTF-8 Encoding Hi What do I need to do so that data returned from Tomcat 4

Re: Switching on UTF-8 Encoding

2002-02-07 Thread timothy
i did it by using filter, it works quite good From Timothy - Original Message - From: "Antony Stace" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 07, 2002 9:45 PM Subject: Switching on UTF-8 Encoding Hi What do I need to do so that data returned fro

Re: Switching on UTF-8 Encoding

2002-02-07 Thread Antony Stace
se %@ page contentType="text/html;charset=UTF-8" % in the JSP or alternatively include the META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8" tag in your HTML. This will tell the browser to use the UTF-8 Encoding. Then when getting the requests, y

Re: Switching on UTF-8 Encoding

2002-02-07 Thread Karthik Gopal
: Friday, February 08, 2002 8:33 AM Subject: Re: Switching on UTF-8 Encoding Thanks Jeff, Timothy, Craig for your replies. I have a situation where I have a form which is UTF-8 format. In the servlet(I am acutally using struts) when I am processing a user request I use name

Re: Switching on UTF-8 Encoding

2002-02-07 Thread Craig R. McClanahan
On Fri, 8 Feb 2002, Antony Stace wrote: Date: Fri, 8 Feb 2002 12:03:35 +0900 From: Antony Stace [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: Switching on UTF-8 Encoding Thanks Jeff, Timothy

Shouldn't Tomcat 3.2.1 decode the UTF-8 encoding of request parameters?

2001-02-19 Thread Mike Spreitzer
Consider a form that is encoded in UTF-8. Here's how it comes down: HTTP/1.0 200 OK Content-Type: text/html; charset=UTF-8 Servlet-Engine: Tomcat Web Server/3.2.1 (JSP 1.1; Servlet 2.2; Java 1.3.0; AIX 4.3 ppc; java.vendor=IBM Corporation) !DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01

RE: Shouldn't Tomcat 3.2.1 decode the UTF-8 encoding of request parameters?

2001-02-19 Thread Marc Saegesser
data sent to your application is in a given encoding or pass the correct encoding in a hidden form field, etc. -Original Message- From: Mike Spreitzer [mailto:[EMAIL PROTECTED]] Sent: Monday, February 19, 2001 4:27 PM To: [EMAIL PROTECTED] Subject: Shouldn't Tomcat 3.2.1 decode