外来的数据无论是GBK还是U8,只要正确的解码成unicode,它都能正确处理的。 String localString = new String(getFromOther(),"CharsetName");