----------------------------------------------------------------
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,

Thanks for all replys.

The problem I had was originating for the characters that exist in the
source code, like this:

out.println("<html><head>");
out.println("<meta http-equiv=\"Content-Type\" content=\"text/html;
charset=iso-8859-9\">");
...
...
out.println("<td> Başlangıç</td>");


I realized that there is an encoding option that can be given to javac.

javac -encoding ISO8859_9 ...

So I'm now using this encoding option. If I don't use it, it makes the
compilation of the source code with the default encoding and does not
support my characters.

The encoding option is available after jdk1.1, although it is not
displayed as an option when you write javac without any parameters in
the command line.

Thanks,

Bilge Yuceer




Stefanos Karasavvidis 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!!!
> ----------------------------------------------------------------
> 
> 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]

-- 
--------------------------------------------------
 POLAR Mühendislik ve Danışmanlık Limited Şirketi
--------------------------------------------------
 POLAR Engineering and Consulting Limited
--------------------------------------------------
 URL: http://www.polar-ltd.com.tr
 Adr: PK-119, Bakanliklar, 06582 Ankara, Turkey
 Tel: + 90 - 312 - 210 14 53
 Fax: + 90 - 312 - 287 53 72
 e-mail: [EMAIL PROTECTED]
--------------------------------------------------


--
--------------------------------------------------------------
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]

Reply via email to