首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

中文编码的处置

2013-01-08 
中文编码的处理js URL参数中文编码:encodeURI(encodeURI(参数))。java解码:filePath URLDecoder.decode(f

中文编码的处理

js URL参数中文编码:encodeURI(encodeURI(参数))。

java解码:filePath = URLDecoder.decode(filePath, "UTF-8");

?

filter里面:httpResponse.setCharacterEncoding("UTF-8");

httpRequest.setCharacterEncoding("ISO8859-1");
httpResponse.setCharacterEncoding("UTF-8");

热点排行