修改中文乱码,测试接口
This commit is contained in:
@@ -65,9 +65,9 @@ public class FileUtil {
|
||||
* @param data 数据
|
||||
*/
|
||||
public static void printDataToFile(String path, String data) {
|
||||
OutputStreamWriter osw = null;
|
||||
BufferedWriter osw = null;
|
||||
try {
|
||||
osw = new OutputStreamWriter(new FileOutputStream(path));
|
||||
osw = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(path), "UTF-8"));
|
||||
|
||||
osw.write(data);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user