Here you can find the source of toChineseOfGBK(String str)
public static String toChineseOfGBK(String str)
//package com.java2s; //License from project: Apache License import java.io.UnsupportedEncodingException; public class Main { public static String toChineseOfGBK(String str) { try {/*w w w . j a va2 s . com*/ return new String(str.getBytes("ISO-8859-1"), "GBK"); } catch (UnsupportedEncodingException localUnsupportedEncodingException) { } return str; } }