首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > J2SE开发 >

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

2011-11-16 
求把字符串为UTF-8的转为GBK的代码求把字符串为UTF-8的转为GBK的代码[解决办法]new String(sourceString.g

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

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

热点排行