📄 stringutil.java
字号:
package cn.edu.ccut;
import java.io.UnsupportedEncodingException;
/**
* Created by IntelliJ IDEA.
* User: hvst
* Date: 2008-8-26
* Time: 16:25:19
* To change this template use File | Settings | File Templates.
*/
public class StringUtil {
public static String iso2gb2312(String src) throws UnsupportedEncodingException{
if(src != null && src.trim().length() != 0){
return new String(src.getBytes("iso-8859-1"),"gb2312");
}
else{
return "";
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -