getBytes("GBK"), "ISO8859_1")的使用
在什么情况下用这个:String anotherString =new String(aString.getBytes("GBK"), "ISO8859_1");
请教.....

MySQL有中文显示问题,所以要插中文和取中文都会是乱码,这样写就解决了中文问题
String china="中文";
String str = new String(china.getBytes("ISO-8859-1"),"GB2312");
还有jsp中文问题