java之乱码

java常见乱码 1.request.getCharacterEncoding("utf-8"); 2.new String(username.getBytes("iso-8859-1","utf-8")) 3.tomcat默认情况下只适合post传值 在server.xml中找到Connector标签 添加一个属性useBodyEncodingForUrl="true"或者URIEncoding
相关文章
相关标签/搜索