3个回答
展开全部
在程序中不直接写入相应的韩文和中文,写相应的Unicode
建议用下面的代码试试看
System.out.println(new String(testString.getBytes(”ISO-8859-1〃),”GBK〃));
System.out.println(new String(testString.getBytes(”UTF8〃),”GBK〃));
System.out.println(new String(testString.getBytes(”GB2312〃),”GBK〃));
System.out.println(new String(testString.getBytes(”GBK”),”GBK〃));
System.out.println(new String(testString.getBytes(”BIG5〃),”GBK〃));
建议用下面的代码试试看
System.out.println(new String(testString.getBytes(”ISO-8859-1〃),”GBK〃));
System.out.println(new String(testString.getBytes(”UTF8〃),”GBK〃));
System.out.println(new String(testString.getBytes(”GB2312〃),”GBK〃));
System.out.println(new String(testString.getBytes(”GBK”),”GBK〃));
System.out.println(new String(testString.getBytes(”BIG5〃),”GBK〃));
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询