?? chinese.java
字號:
/*
* Chinese.java
*
* Created on 2007年11月19日, 上午9:48
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package dianping;
/**
*冷漠大神 q 361619004
* @author Angel
*/
public class Chinese {
/** Creates a new instance of Chinese */
public Chinese() {
}
/**
* 中文問題 getGBK
*/
public String getGBK(String s)
{
String ss=null;
try
{
ss=new String(s.getBytes("iso-8859-1"),"gbk");
}catch(Exception e)
{
e.printStackTrace();
}
return ss;
}
/**
* 中文問題 getGBK
*/
public String getUTF8(String s)
{
String ss=null;
try
{
ss=new String(s.getBytes("iso-8859-1"),"UTF-8");
}catch(Exception e)
{
e.printStackTrace();
}
return ss;
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -