String t = "\u53d6"; try { String gbk=URLEncoder.encode(t,"GBK"); System.out.println(gbk); } catch (UnsupportedEncodingException e) { e.printStackTrace(); }