中文问题 - IDC资讯网_站长学院 - Java PHP Flex Python Ajax CSS 编程 开源 学习 总结 分享

中文问题

[ 2008-07-29 12:53 | by 草山湖 ]

System.out.println(new String(str.getBytes("GBK"),"ISO8859_1"));
System.out.println(new String(str.getBytes("GBK"),"utf-8"));
System.out.println(new String(str.getBytes("GBK"),"GB2312"));
System.out.println(new String(str.getBytes("GBK"),"GBK"));
System.out.println(new String(str.getBytes("ISO8859_1"),"GBK"));
System.out.println(new String(str.getBytes("ISO8859_1"),"ISO8859_1"));
System.out.println(new String(str.getBytes("ISO8859_1"),"GB2312"));
System.out.println(new String(str.getBytes("ISO8859_1"),"utf-8"));
System.out.println(new String(str.getBytes("utf-8"),"GBK"));
System.out.println(new String(str.getBytes("utf-8"),"utf-8"));
System.out.println(new String(str.getBytes("utf-8"),"GB2312"));
System.out.println(new String(str.getBytes("utf-8"),"ISO8859_1"));
System.out.println(new String(str.getBytes("GB2312"),"GB2312"));
System.out.println(new String(str.getBytes("GB2312"),"ISO8859_1"));
System.out.println(new String(str.getBytes("GB2312"),"utf-8"));
System.out.println(new String(str.getBytes("GB2312"),"GBK"));
 
Tags:
编程语言 | 评论(0) | 引用(0) | 阅读(3661)