android写文件不会乱码的方法
来源:网络 责任编辑:栏目编辑 发表时间:2013-07-01 17:00 点击:次
String filePath = "/sdcard/utf8_file.txt";
String UTF8 = "utf8";
int BUFFER_SIZE = 8192;
BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(filePath), UTF8),BUFFER_SIZE);
BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(filePath), UTF8),BUFFER_SIZE);
相关新闻>>
最新推荐更多>>>
- 发表评论
-
- 最新评论 更多>>