URL %乱码

java中URL有解码和编码两个库

https://www.eso.org/~ndelmott/url_encode.html

 

        String str = URLEncoder.encode(httpUrl, StandardCharsets.UTF_8);


        str = URLDecoder.decode(httpUrl, StandardCharsets.UTF_8);

 

posted @ 2022-09-24 14:34  SaraMorning  阅读(27)  评论(0编辑  收藏  举报