You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by 小倉 <mo...@eadviser.net> on 1999/12/24 09:52:52 UTC
tomcat support 2bytes(Japanese) code?
Hello. I'm Atsushi Ogura.
I use Apache & tomcat in Japan.
I have one trouble.It's about 2bytes code.
Tomcat display error, include 2byte code JSP file.
Error's cause in source file (at Release Ver3.0 code)
org/apache/jasper/compiler/EscapeUnicodeWriter.java
function:
public void write(char buf[], int off, int len)
line: 91
int ch = buf[off++] & 0xff;
This code translate 2byte code -> 1byte code and Japanese code broken.
I try this code and so good result.
int ch = buf[off++];
If you correct this code.and I'm happy.
Good bye.
−−−−−−−−−−−−−−−−−−−−−−
Atushi Ogura e-mail: ogura@eadviser.net
Re: tomcat support 2bytes(Japanese) code?
Posted by Hans Bergsten <ha...@gefionsoftware.com>.
$B>.AR(J wrote:
>
> Hello. I'm Atsushi Ogura.
> I use Apache & tomcat in Japan.
> I have one trouble.It's about 2bytes code.
> Tomcat display error, include 2byte code JSP file.
>
> Error's cause in source file (at Release Ver3.0 code)
> org/apache/jasper/compiler/EscapeUnicodeWriter.java
>
> function:
> public void write(char buf[], int off, int len)
> line: 91
> int ch = buf[off++] & 0xff;
> This code translate 2byte code -> 1byte code and Japanese code broken.
> I try this code and so good result.
> int ch = buf[off++];
>
> If you correct this code.and I'm happy.
I believe this bug has already been fixed (after the 3.0 release).
Try using the latest version.
Hans
--
Hans Bergsten hans@gefionsoftware.com
Gefion Software http://www.gefionsoftware.com