tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From abdul razack <>
Subject Re: retrive Arabic data
Date Wed, 27 May 2009 12:13:19 GMT
1. In server.xml
   <Connector port="89" maxHttpHeaderSize="8192"
               maxThreads="150" minSpareThreads="25" useBodyEncodingForURI="true" 
                 maxSpareThreads="75" enableLookups="false" redirectPort="8443"
               connectionTimeout="20000" disableUploadTimeout="true" />
2. In all JSP pages 
  <%@ page contentType="text/html;charset=UTF-8" %>
 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
3. But I am surprise to see in servlet that request.getCharacterEncoding ( ) as null.

Still I have same problem.
-Abdul Razack

--- On Wed, 5/27/09, Youssef Mohammed <> wrote:

From: Youssef Mohammed <>
Subject: Re: retrive Arabic data
To: "Tomcat Users List" <>
Date: Wednesday, May 27, 2009, 4:53 PM

u just need to set your content encoding to UTF-8 in your jspes
<%@ page pageEncoding="UTF-8" %>
I think also there might be a way to set the default encoding to utf8 !
Regards, Youssef

On Wed, May 27, 2009 at 2:16 PM, abdul razack <> wrote:
> Hi,
>  I have Java web application (JSP, Servlet, SQL server 2005) running on apache-tomcat-5.5.23.
> I am facing one problem when retriving Arabic data from database. The data contains both
english and Arabic in table.
> when retirve  data from java application all arabic is appearing as ????. But english
is coming is perfectly.
> The combination of Arabic and english data will be inserted in the database through other
application (ASP.Net technology).The encoding uses (UTF-8). In database table arabic columns
will have arabic and english columns will have english.
> Please give me direction what would have gone wrong.
> Would there be any problem in Tomcat.
> Thanks & Regards
> -Abdul Razack

To unsubscribe, e-mail:
For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message