//解决 使用URLEncoder编码后 空格变+号的问题
public String getEnCodeStr(String columnStr) throws UnsupportedEncodingException{
if(columnStr.getBytes().length != columnStr.length()){
columnStr = URLEncoder.encode(C.show(columnStr), "UTF-8");
columnStr = columnStr.replace("+", "%20");
}
return columnStr;
}
public String getEnCodeStr(String columnStr) throws UnsupportedEncodingException{
if(columnStr.getBytes().length != columnStr.length()){
columnStr = URLEncoder.encode(C.show(columnStr), "UTF-8");
columnStr = columnStr.replace("+", "%20");
}
return columnStr;
}