注意写的地方:(如果在setContentType下面,也会出现乱码)
<span style="white-space: pre;"> </span><span style="font-size: 18px; font-weight: bold; background-color: rgb(255, 153, 255);">response.setCharacterEncoding("utf-8"); </span><span style="white-space: pre;"> </span><span style="font-size:18px;"><strong style="background-color: rgb(255, 153, 255);">response.setContentType("text/html");</strong></span>
版权声明:本文为博主原创文章,未经博主允许不得转载。
原文地址:http://blog.csdn.net/code_7/article/details/46823297