中文问题 - 草山湖随笔 - 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:
JAVA相关 | 评论(0) | 引用(0) | 阅读(1260)
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]