企业架构师成长之路

一些心得体会..

  BlogJava :: 首页 :: 联系 :: 聚合  :: 管理
  3 Posts :: 1 Stories :: 3 Comments :: 0 Trackbacks
import java.io.*;
public class StringTest
{
public static void main(String[] args)
{
String aString = "这是一个测试串,This is a test string.";
String anotherString = null;
try {
anotherString = new String(aString.getBytes("GBK"), "ISO8859_1");
}
catch (UnsupportedEncodingException ex) {
}
System.out.println(aString.length() + "," + anotherString.length());
}
}
posted on 2005-12-19 08:49 风风 阅读(337) 评论(0)  编辑  收藏 所属分类: JFC

只有注册用户登录后才能发表评论。


网站导航: