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
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
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
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
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
,
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
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
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
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
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
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
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
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
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
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
[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
, 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
: 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
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
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.
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:
%@
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
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
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
(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
: 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
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
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
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
: 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
-
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
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
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
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)
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
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
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
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
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
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,
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
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
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
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
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
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
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
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
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
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
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
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。
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
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
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
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
: 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
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
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
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
60 matches
Mail list logo