"朱元璋".getBytes("utf-8").length = ?

来源:互联网 发布:品茗软件下载 编辑:程序博客网 时间:2024/05/20 09:44
"朱元璋".getBytes("utf-8").length = 9
"朱元璋".getBytes("GBK").length = 6
"朱元璋".getBytes("ISO8859-1").length = 3
"朱元璋".getBytes().length = 6       //在windows中文版上运行
"朱元璋".getBytes().length = 3       //在SCO UNIX上运行