一个servlet的程序,汉字显示乱码,用了各种转化方式也没有效果!
代码如下:
String ss = new String("h基ll活动k");
String temp = new String(ss.getBytes("ISO8859-1"),"GBK");
jspwriter.println(temp);
页面显示为h??ll????k
请问应该如何解决??谢谢!!
...全文
724打赏收藏
servlet汉字问题求救!!
一个servlet的程序,汉字显示乱码,用了各种转化方式也没有效果! 代码如下: String ss = new String("h基ll活动k"); String temp = new String(ss.getBytes("ISO8859-1"),"GBK"); jspwriter.println(temp); 页面显示为h??ll????k 请问应该如何解决??谢谢!!