📄 encoding.java
字号:
/*
* Created on 2005-8-5
*
*/
package banksystem;
import banksystem.Constants;
/**
* @author 曲本盛
*
* TODO Struts 项目实践
*/
public class Encoding {
public static String CNtoISO(String str){
String temp = "";
try{
temp = new String(str.getBytes(Constants.ISO_ENCODING),Constants.CN_ENODING);
}
catch(Exception e){
throw new RuntimeException(e);
}
return temp;
}
public static String ISOtoCN(String str){
String temp = "";
try{
temp = new String(str.getBytes(Constants.CN_ENODING),Constants.ISO_ENCODING);
}
catch(Exception e){
throw new RuntimeException(e);
}
return temp;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -