【Java】编码转换:UTF-8转GB2312时间:2022-06-13 08:43:44 【Java】编码转换:UTF-8转GB2312 String gStr= new String(uStr.getBytes("UTF-8"), "GB2312"); //uStr:待转换的utf-8编码的字符串 //gStr:转换后的gb2312字符串