Thanks, now I solved the storage problem....
However, I still cannot get data correctly from db2.
I guess that`s because the default DB2Driver setting gets data in Unicode. Data displyed int
jsp pages are replaced by ???
instead of chinese. So I made little modification to your code,
hoping that it would work:
protected String DealString(String sBIG5){
try{
sBIG5.trim();
byte[] sReguest = sBIG5.getBytes("UTF-8");
return new String(sReguest,"BIG5");
}catch(Exception e){
e.printStackTrace();
return sBIG5;
}
}
However I still fail. The difference is that those ??? are now even more peculiar characters.
Some insight?
[This message has been edited by Po-yu Chien (edited November 18, 2001).]