URLDecode的最初级使用

来源:互联网 发布:神优化的单机游戏 编辑:程序博客网 时间:2024/05/21 22:58

encodeContent是经过URL的编码而来的字符串

一般有者几种情况:

1) 以get的方式去提交表单,锁获取的参数

2) <input type="file" name="file" />以application-x-www-form-urlencoded 方式提交的数据

 

解码代码:

String result = URLDecode.decode(encodeContent, "UTF-8");