我们在web应用开发过程中经常遇到输出某种编码的
12 查阅
参考答案:
Public String translate (String str) {
\r\n
String tempStr = \"\";
try {
tempStr = new String(str.getBytes(\"ISO-8859-1\"), \"GBK\");
tempStr = tempStr.trim();
}
catch (Exception e) {
System.err.p