日期:2014-05-20 浏览次数:20712 次
String str = "你号码不好吗"; PrintWriter pw = new PrintWriter("xxx.txt", "utf-8"); pw.println(str); ------解决方案-------------------- String str = "你号码不好吗";byte [] b = str.getBytes("UTF-8");outFile.write(b);