标签:static leo 输出流 new stream free 创建 stat buffer
在创建输出流的时候:
//Writer out=new FileWriter(new File(STATIC_PAGE_PATH+itemId+".html"));//出现乱码
Writer out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(new File(STATIC_PAGE_PATH+itemId+".html")),"UTF-8"));//使用这个方式创建就不会出现乱码了
标签:static leo 输出流 new stream free 创建 stat buffer
原文地址:http://www.cnblogs.com/chenKnowledgeConllection/p/7170395.html