📄 encodingchange.java
字号:
package DAO;
public class EncodingChange {
public static String getWriteStr(String str) {
try {
String temp_p = str;
byte[] temp_t = temp_p.getBytes("GBK");
String unicode = new String(temp_t,"ISO8859-1");
return unicode;
}
catch(Exception e) {
return "null";
}
}
public static String getReadStr(String str) {
try {
String temp_p = str;
byte[] temp_t = temp_p.getBytes("ISO8859-1");
String unicode = new String(temp_t,"GBK");
return unicode;
}
catch(Exception e) {
return "null";
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -