tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Allistair Crossley" <Allistair.Cross...@QAS.com>
Subject RE: Arabic encoding
Date Wed, 23 Feb 2005 09:29:48 GMT
Hi,

HTML <meta> tags won't help you.

Take a look at response.setCharacterEncoding("UTF-8") and JSP page directive for contentType

<%@ page contentType="text/html; charset=UTF-8" %>

Replace UTF-8 with the charset for Arabic and see if that helps.

Allistair.

> -----Original Message-----
> From: Fadwa Barham [mailto:fadwa@najah.edu]
> Sent: 23 February 2005 21:20
> To: tomcat-user@jakarta.apache.org
> Subject: Arabic encoding
>
>
> Hi,
>  I face difficulties with encoding, at first I developed
> servlets that connects to oracle database, the oracle
> encoding is US7Ascii and it contains arabic data, I used
> Java1.3 to write the code and tomcat 4.0.6 to deploy the
> servlets, I just needed to get the write encoding of the
> servlets, both the data from the database or the messages I
> write in the code in arabic, is puting these lines in the servlet
> <meta http-equiv="Content-Language" content="ar-sa">
> <META http-equiv=Content-Type
> content="text/html;charset=windows-1256">
> when I wanted to use Java 5 I get question marks
> and when I used the servlets which I compiled on jdk1.3 in
> tomcat 5.5.8  I need to adjust the encoding each time I
> request the servlet to windows-1256.
> what's the problem of the encoding in the new versions of
> Java and tomcat?
> I noticed the internationalization in the tomcat contains
> tomcat-i18n-en.jar,tomcat-i18n-fr.jar,tomcat-i18n-ja.jar,tomca
> t-i18n-es.jar
> is the problem that I need tomcat-i18n-ar.jar? and if so, how
> to get it?
> Hope I explained the problem in obvious way.
> I can't continue using tomcat 4.0.6 cause I always have
> dbconnection failure as I use jndi DataSource, but I found
> tomcat 5.5.8 is more stable.
> Please I need help
> Thanks,
> 


<FONT SIZE=1 FACE="VERDANA,ARIAL" COLOR=BLUE> 
-------------------------------------------------------
QAS Ltd.
Developers of QuickAddress Software
<a href="http://www.qas.com">www.qas.com</a>
Registered in England: No 2582055
Registered in Australia: No 082 851 474
-------------------------------------------------------
</FONT>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message