字符串乱码代码:
public static String encodePathVariable(String pathVariable) {
String ret = "default";
try {
ret = URLEncoder.encode(pathVariable, "utf-8");
System.out.println(pathVariable + " : " + ret);
} catch (Exception e) {
System.out.println(e);
}
return ret;
}