读书人

求把字符串替UTF-8的转为GBK的代码

发布时间: 2011-11-16 23:08:44 作者: rapoo

求把字符串为UTF-8的转为GBK的代码
求把字符串为UTF-8的转为GBK的代码

[解决办法]
new String(sourceString.getBytes( "UTF-8 "), "GBK ")

读书人网 >J2SE开发

热点推荐