程序:
1.void setCharacterEncoding(String env)设置请求的编码格式(ServletRequest)
2.void setCharacterEncoding(String charset)设置响应的编码格式(ServletResponse)
3.object = new String(object.getBytes("iso-8859-1"),"utf-8"));把原来格式的iso转换成utf
程序:
1.void setCharacterEncoding(String env)设置请求的编码格式(ServletRequest)
2.void setCharacterEncoding(String charset)设置响应的编码格式(ServletResponse)
3.object = new String(object.getBytes("iso-8859-1"),"utf-8"));把原来格式的iso转换成utf