Hello.

I think  setContentType is the spec to specify source encoding type.
<% response.setContentType("text/html;charset=SJIS"); %>
But it does not work with JSP1.0.

it  generates

response.setContentType("text/html");
response.println("");
response.setContentType("text/html;charset=SJIS");

I hope this problem should be corrected soon.

Output HTML source encoding type is System.getProperty("file.encoding") ?
But WindowsNT allways return MS932(SJIS).


At 11:07 AM +0900 99.5.28, Ryo Iwasaki wrote:
> Hello Suzuki:
>
>   I found same problem and already sent feedback to jsp-feedback (but
> no reply).
>
>   It is convenient if I can specify JSP file encoding (ex. SJIS, JIS,
> EUCJIS ...), because it is not common creating unicode encoding file
> in Japanese.
>   On the other hand, output encoding from JSP servlet seems to be
> always SJIS on WindowsNT.
>
>   Does anyone know how to specify JSP file encoding and output
> encoding on JSP 1.0?


> Suzuki Hidehiko <[EMAIL PROTECTED]> wrote:
>
> > Hello.
> >
> > I am trying to use JSP1.0. I have found a problem of double byte
>character
> > on the JSP.
> > Because of java's simple conversion method to UNICODE, Japanese
> > character(SJIS) is not shown correctly.
> > If I make JSP source file in UNICODE, and I can specify "-encoding
>Unicode"
> > for JSP compile javac, may be it's OK. But how can I do this?
--
Yoshiyuki Kumadaki/ $B7'2{ (B  $BA1G7 (B
 Web Japan Co.,Ltd / $B!J3t!K%&%(%V%8%c%Q%s (B
<mailto:[EMAIL PROTECTED]>
<http://www.webjp.ne.jp/>

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to