----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
the setContentType() does correctly set the character set but are you
sure that what is actually written is correct?? I mean that having a
correct Unicode Java String and printing this out with a servlet
printwriter imposes a 16-bit to 8-bit conversion. If this is not done
correctly, you won't see the correct text i your HTML page
Stefanos
"Bilge (Erkan) Yuceer" wrote:
> ----------------------------------------------------------------
> BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
> WHEN YOU POST, include all relevant version numbers, log files,
> and configuration files. Don't make us guess your problem!!!
> ----------------------------------------------------------------
>
> Hello,
>
> I'm running Apache 1.3.9 + Apache Jserv 1.0 on Linux system.
> I cannot get the correct characters from my servlet even though I set
> the content type and charset before giving any HTML output from the
> servlet both for the response object like this:
>
> response.setContentType("text/html; charset=iso-8859-9");
>
> and for the HTML output like this:
>
> out.println("<html><head>");
> out.println("<meta http-equiv=\"Content-Type\" content=\"text/html;
> charset=iso-8859-9\">");
>
> Apache Web server is supporting this character set but Apache Jserv
> seems not supporting it. What can I do to solve this problem?
>
> Thanks,
>
> Bilge.
>
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Archives and Other: <http://java.apache.org/main/mail.html>
> Problems?: [EMAIL PROTECTED]
--
======================================================================
Stefanos Karasavvidis
Electronics & Computer Engineer
e-mail : [EMAIL PROTECTED]
Multimedia Systems Center S.A.
Kissamou 178
73100 Chania - Crete - Hellas
http://www.multimedia-sa.gr
Tel : +30 821 88447
Fax : +30 821 88427
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]