class EncodeDemo2
{
public static void main(String[] args)throws Exception
{
String s = "联通";
byte[] by = s.getBytes("gbk");
for(byte b : by)
{
System.out.println(Integer.toBinaryString(b&255));
}
System.out.println("Holle World!");
}
}
字符编码-联通
最新推荐文章于 2024-07-13 13:55:40 发布