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

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

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

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