Here you can find the source of gbk2Utf8(String str)
public static final String gbk2Utf8(String str)
//package com.java2s; import java.io.UnsupportedEncodingException; public class Main { public static final String gbk2Utf8(String str) { try {/*from w w w . ja va 2 s. c o m*/ return new String(str.getBytes("GBK"), "UTF-8"); } catch (UnsupportedEncodingException e) { e.printStackTrace(); return str; } } }