![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
字符编码
OnePiece_Sky
从事软件开发
展开
-
用字符编码处理中文乱码问题,js向action中传值时
url 传值时 java中 编译 name = URLEncoder.encode("哈哈哈", "UTF-8"); 必要的时候:name = URLEncoder.encode(URLEncoder.encode(userName, "UTF-8"));转两次 解码 URLDecoder.decode(str,"utf-8") js中 编译 enco原创 2013-11-20 15:40:29 · 808 阅读 · 0 评论 -
火狐浏览器下载乱码问题
public static String encodeChineseDownloadFileName(HttpServletRequest request, String pFileName) { //判断浏览器类型 火狐编码处理 pFileName = new String(pFileName.getBytes("utf-8"), "iso-8859-1"); String age原创 2014-12-24 12:15:34 · 619 阅读 · 0 评论