摘要: 1 使用FileWriter写中文xml出现乱码 很怪异。XMLWriter writer=null;try{Document doc=DocumentHelper.parseText(result);OutputFormat format=OutputFormat.createPrettyPrint();format.setEncoding("UTF-8"); //FileOutputStream fos=new FileOutputStream(new File("C:\\GeoSearchResponse.xml"));writer=new XML 阅读全文
posted @ 2011-04-26 15:39 李克华 阅读(4094) 评论(0) 推荐(0)