1. In server.xml <Connector port="89" maxHttpHeaderSize="8192" maxThreads="150" minSpareThreads="25" useBodyEncodingForURI="true" URIEncoding="UTF-8" maxSpareThreads="75" enableLookups="false" redirectPort="8443" acceptCount="100" 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 <[email protected]> wrote: From: Youssef Mohammed <[email protected]> Subject: Re: retrive Arabic data To: "Tomcat Users List" <[email protected]> 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 <[email protected]> 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: [email protected] For additional commands, e-mail: [email protected]
