/**
* 输出一个某种编码的字符串
* @param str
* @return
*/
public static String translate(String str){
String tempStr = "";
try {
tempStr = new String(str.getBytes("ISO-8859-1"),"GBK");
tempStr = tempStr.trim();
} catch (UnsupportedEncodingException e) {
System.err.println(e.getMessage());
}
return tempStr;
}
方法积累系列一
