tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject RE: Greek encoding in Java Servlet Output
Date Fri, 01 Jun 2001 11:21:00 GMT
Hi , tomcat's default is  8859-1  
so u have to convert it .. 


for Turkish  characters ; 

String endeks_name = request.getParameter("name");
String endeks_name_tr =new
String(endeks_name.getBytes("ISO-8859-1"),"ISO-8859-9") ;


Altug .

-----Original Message-----
From: Kotsari Aspasia []
Sent: Friday, June 01, 2001 12:06 PM
To: ''
Subject: Greek encoding in Java Servlet Output

Hi all!

I am facing the following problem:

I have made a Java servlet that reads HTML form data and sends it to an 
e-mail address.
When the data is in Latin characters (ISO-8859-1, I assume) the output is 
However, when the form data is in Greek it appears as "???????" in the 

I know it's a problem of Internationalization and bytes.

I have tried both PrintStream and PrintWriter, and also ISO-8859-7 and 
Cp1253 for the encoding, as well as other modified Writer classes, but no 

Does anyone have any idea on how to get rid of those fussy questionmarks 
that are giving me quite a headache?

Thanx a lot! :)


View raw message