写入文件出现乱码问题 :
BufferedWriter w = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(new File(fileName)),"GBK"));
w.write(new String("中文中文中文中文中文中文中文中文".getBytes("utf-8"),"GBK"));