Or Tomcat installations are configured differently on each of the environments, e.g. Connector URIEncoding attribute.
On Thu, May 28, 2009 at 3:28 PM, Youssef Mohammed < youssef.moham...@gmail.com> wrote: > On Thu, May 28, 2009 at 4:23 PM, abdul razack <sh_abd...@yahoo.com> wrote: > > Hi Mark, > > > > As you suggested, I have tested sample JSP in the FAQ as you pointed. > > I could see Arabic in the output. This is OK. > > > I am not able to view Arabic data when tomcat application running on > winodws 2003 server OR windows 2000 professional. > > But I am surprised to see Arabic data when I run application on windows > XP professional. > > This might suggest that the problem has nothing to do with tomcat. I > would go for checking this issue with MS folks (platform setting , db/ > db driver settings, ... ) > > > > > In all above scenarios data base SQL server 2005 resides on Windows 2003 > server. > > > > > > Any other setting that I need to do in Tomcat. > > > > Thanks & Regards > > -Abdul Razack > > > > > > > > > > > > --- On Wed, 5/27/09, Mark Thomas <ma...@apache.org> wrote: > > > > > > From: Mark Thomas <ma...@apache.org> > > Subject: Re: retrive Arabic data > > To: "Tomcat Users List" <users@tomcat.apache.org> > > Date: Wednesday, May 27, 2009, 5:48 PM > > > > > > abdul razack wrote: > >> > >> > >> 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. > > > > Try the sample JSP in the FAQ I pointed you towards. If that works, you > > have an application issue. If that doesn't work, you have broken your > > Tomcat config somewhere. > > > > Mark > > > >> > >> -Abdul Razack > >> > >> > >> > >> > >> --- On Wed, 5/27/09, Youssef Mohammed <youssef.moham...@gmail.com> > wrote: > >> > >> > >> From: Youssef Mohammed <youssef.moham...@gmail.com> > >> Subject: Re: retrive Arabic data > >> To: "Tomcat Users List" <users@tomcat.apache.org> > >> 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 <sh_abd...@yahoo.com> > 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: users-unsubscr...@tomcat.apache.org > >> For additional commands, e-mail: users-h...@tomcat.apache.org > >> > >> > >> > >> > >> > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > > For additional commands, e-mail: users-h...@tomcat.apache.org > > > > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >