----------------------------------------------------------------
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!!!
----------------------------------------------------------------
Set your charset to approiate one like below:
response.setContentType("text/html; charset=ISO-8859-9");
or when you get the result from resultset you can use something below,
otherwise you couldn`t get the right characters.
newsName = new String(rs
.getString("isim").getBytes("ISO-8859-1"),"ISO-8859-9");
Another reason could be the JDBC driver. Some characters could be
lose on the JDBC driver.
Above are the possible reasons that i know.
> -----Original Message-----
> From: Sriram [SMTP:[EMAIL PROTECTED]]
> Sent: 08 Mayıs 2000 Pazartesi 10:22
> To: Java Apache Users
> Subject: SJIS or ISO8859_1 in a servlet ?
>
> ----------------------------------------------------------------
> 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!!!
> ----------------------------------------------------------------
>
> hi,
>
> database :MS SQL Server 7.0(japanese)
> os:turbo-linux:4.2
> kernel:2.2.9
> apache:1.3.6
> Apache jserv :1.0
>
> when ever i'm trying to get data from the database, some of the
> charaters are not interpreted properly. A '?' is displayed wherever
> characters are to be displayed. i v changed the character set to
> ISO8859_1 and the problem is not solved totally, some characters like
> '$'(dollar) are not displayes properly. as in "$45.89", it displays
> "?45.89". any hints?
> i have tried SJIS character encoding also. itz of no use.
>
> thanks in advance
> sriram
>
>
>
> --
> --------------------------------------------------------------
> 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]
--
--------------------------------------------------------------
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]