中文编码:
JS:encodeURI("这里放url")将url编码,用的时候再用decodeURI("接收到的值")解码。String ss=encodeURI(encodeURI("接收到的值"));
JAVA:String ss=URLDecoder.decode("接收到的中文值","UTF-8");
posted on 2014-03-05 17:17 阅读( ...) 评论( ...)
本文共 253 字,大约阅读时间需要 1 分钟。
中文编码:
JS:encodeURI("这里放url")将url编码,用的时候再用decodeURI("接收到的值")解码。String ss=encodeURI(encodeURI("接收到的值"));
JAVA:String ss=URLDecoder.decode("接收到的中文值","UTF-8");
转载于:https://www.cnblogs.com/jessie-fu/p/3582899.html