怎么将UTF-8编码的字符串用GB18030输出

如何将UTF-8编码的字符串用GB18030输出?如题,多谢了。[解决办法] 转码! 得到的数据转换成字节 eg:String s

如何将UTF-8编码的字符串用GB18030输出?
如题,多谢了。

[解决办法]
转码!
得到的数据转换成字节
eg:
String s = InterFace();
String str = new String(s.getBytes("iso-8859-1"),"GB18030");