摘要: Windows下正常的应用移行到Solaris下后,response返回到终端的内容出现乱码。猜测原因是在没有指定编码时,输出response是用系统默认的编码。因为用的是SpringMVC,所以开始在web.xml中加入了characterEncodingFilter,但是并没起作用,查阅后,这个只对request进行强制编码转换。后来把Solaris的编码从ja(EUC-JP)改到了UTF-8,还是不行。最后解决办法是: PrintWriter out = null; try { out = new PrintWriter(new Outp... 阅读全文
posted @ 2013-09-11 08:25 kouen5 阅读(617) 评论(0) 推荐(0) 编辑