字符串转码

来源:互联网 发布:淘宝免费送衣服返现 编辑:程序博客网 时间:2024/06/05 04:38
String currentCity = "广州市";
        try {
            currentCity= java.net.URLEncoder.encode(currentCity,"utf-8");
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }
0 0