a hint ....

major (pine)
本文发表在 rolia.net/zh 相约加拿大网上社区枫下论坛
this is a WINDOW NT enviroment. but I think it the same to Window 2000.You can have a try.
first modify the "Zone set" (区域设置)in “Control Panel". Set Zone as ”English(Unite states),not set as "Chinese (PRC)". Reboot the system.
Change your jsp programm as

<%@ page contentType="text/html;charset=ISO8859_1"%>


<META http-equiv=Content-Type content="text/html; charset=ISO8859_1">

//String cs=""; no necessary!
String sss= "目录";
//byte ba[]=sss.getBytes(); no necessary!
//cs= new String(ba,"GBK" ); no necessary!
}catch (Exception ee){
//out.println(cs); no necessary!
//PrintWriter pw = new PrintWriter(out); no necessary!


It's no necessary to use GBK and getBytes()!
good luck!
更多精彩文章及讨论,请光临枫下论坛. 网址: rolia.net/zh
2001-3-2 -04:00
This post has been archived. It cannot be replied.
Page address has been copied. To share, click to copy page address.
Share Online by QR Code

Back To Topic: Jabber,could you give me a hint about chinese character processing in JSP?Any one interested in this subject pls come in......

Back To Forum: HOME枫下论坛枫下论坛主坛工作学习IT技术讨论