Redian新闻
>
Re: How to display Chinese text (query results) properly on web ??
avatar
Re: How to display Chinese text (query results) properly on web ??# Database - 数据库
f*c
1
Not sure if the following is relevant or not:
I remember Java's I/O library has two versions, one can support unicode the
other cannot. You may wish to look up the document about xxxbuffer.
I guess it is the porblem of Jsap, which fail to interprest the chinese
characters (codede in unicode by MS Access).
avatar
w*s
2
I have tried to use String class to convert (encode)the
characters, but it seems that it does not work.
such as:
String newTitle = new String(title.getBytes("Cp935"))
or
byte[] newTitle = title.getBytes("Cp935");
Could anyone help me?
Thanks!
Jim Cheng

【在 f*****c 的大作中提到】
: Not sure if the following is relevant or not:
: I remember Java's I/O library has two versions, one can support unicode the
: other cannot. You may wish to look up the document about xxxbuffer.
: I guess it is the porblem of Jsap, which fail to interprest the chinese
: characters (codede in unicode by MS Access).

avatar
C*w
3
Are you using win2000 English version. Your jsp might be
good, but your browser might not. Try in IE: click on
View, Encode, and find Chinese Simplified. See if this
helps.

【在 w*s 的大作中提到】
: I have tried to use String class to convert (encode)the
: characters, but it seems that it does not work.
: such as:
: String newTitle = new String(title.getBytes("Cp935"))
: or
: byte[] newTitle = title.getBytes("Cp935");
: Could anyone help me?
: Thanks!
: Jim Cheng

avatar
C*w
4
Are you using win2000 English version. Your jsp might be
good, but your browser might not. Try in IE: click on
View, Encode, and find Chinese Simplified. See if this
helps.

【在 w*s 的大作中提到】
: I have tried to use String class to convert (encode)the
: characters, but it seems that it does not work.
: such as:
: String newTitle = new String(title.getBytes("Cp935"))
: or
: byte[] newTitle = title.getBytes("Cp935");
: Could anyone help me?
: Thanks!
: Jim Cheng

avatar
w*s
5
It does not work that way.
I have tried it hundreds of times.

【在 C******w 的大作中提到】
: Are you using win2000 English version. Your jsp might be
: good, but your browser might not. Try in IE: click on
: View, Encode, and find Chinese Simplified. See if this
: helps.

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。