servlet返回中文到jsp页面,出现乱码
解决方式:
声明编码在先,out在后
response.setContentType("text/html;charset=gbk");
PrintWriter out = response.getWriter();
转载请注明出处:
http://www.laoz.net/?p=212
版权所有,作者:老钟,如若转载,请注明出处:https://www.laoz.net/212.html
servlet返回中文到jsp页面,出现乱码
解决方式:
声明编码在先,out在后
response.setContentType("text/html;charset=gbk");
PrintWriter out = response.getWriter();
转载请注明出处:
http://www.laoz.net/?p=212
版权所有,作者:老钟,如若转载,请注明出处:https://www.laoz.net/212.html