public static String encode(String str) throws UnsupportedEncodingException {
String encodedURL = URLEncoder.encode(str, "UTF-8");
return encodedURL;
}
转载于:https://www.cnblogs.com/xxdc/p/3139844.html
public static String encode(String str) throws UnsupportedEncodingException {
String encodedURL = URLEncoder.encode(str, "UTF-8");
return encodedURL;
}
转载于:https://www.cnblogs.com/xxdc/p/3139844.html