decode.java

来自「利用jsp」· Java 代码 · 共 31 行

JAVA
31
字号
/*
 * Created on 2008-3-20
 *
 * To change the template for this generated file go to
 * Window>Preferences>Java>Code Generation>Code and Comments
 */
package com.ibm.j2ee.zhanjiang.bean;

/**
 * @author J2EE
 *
 * To change the template for this generated type comment go to
 * Window>Preferences>Java>Code Generation>Code and Comments
 */
public class Decode {
	
	public Decode(){};

	public static String deCode(String iso) {
				String gb = null;
				if (iso != null) {
					try {
						gb = new String(iso.getBytes("ISO-8859-1"), "gb2312");
					} catch (Exception e) {
						gb = null;
					}
				}
				return gb;
			} 
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?