怎么编写GB2312->UTF-8的函数

怎么编写GB2312->UTF-8的函数

new String(strTest.getBytes("GB2312"),"UTF-8");

同意楼上
^_^