写数据到本地文件时,应该先确定字符集 Leave a Comment / Java / August 20, 2008 August 20, 2008 可以这样写: Writer writer = new OutputStreamWriter(new FileOutputStream(file),"utf-8");