会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Ferocious
博客园
首页
新随笔
联系
订阅
管理
2021年5月19日
Java对URL中的中文进行UrlEncode
摘要: 有些中文或者有空格的、传入参数带中文的URL需要用如下方式进行encode方能进行真正的请求: public static String urlEncodeURL(String str) { try { String result = URLEncoder.encode(str, "UTF-8");
阅读全文
posted @ 2021-05-19 17:46 Ferocious
阅读(6832)
评论(2)
推荐(1)
编辑