转换中文的方法

来源:互联网 发布:adobe旗下的软件 编辑:程序博客网 时间:2024/04/30 09:38
public String getStr(String str)
{
try
{
String temp_p=str;
byte[] temp_t=temp_p.getBytes("ISO8859_1");
String temp=new String(temp_t);

}
catch(Exception e)
{
e.printStackTrace();
}
return "null";
}
原创粉丝点击