bufferedwriter写json文件中文乱码

需要用writer writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(file),"utf-8"))

file为想写入文件的地址

转载于:https://www.cnblogs.com/wangc04/p/8431233.html

你可能感兴趣的:(bufferedwriter写json文件中文乱码)