java_method_stringUtils

/**
* 字符串英文单双引号处理,将中英文引号转为中文的引号
* @param temp
* @return
*/
public static String getStringDatabase(String temp){

if ( temp == null || "".equals( temp )){
return "";
}
temp = temp.replace( "'" , "’" );
temp = temp.replace(""", "”");

return temp;
}

原文地址:https://www.cnblogs.com/zxxbk/p/6256288.html