OutputStream out =newFileOutputStream("C:/aa.txt");
XMLStreamWriter writer=output.createXMLStreamWriter(out,"UTF-8"); // When output encoding is "UTF-8", result is something like: // 汉语, English, にほんご // When output encoding is "GBK", result is something like: // 汉语, English, にほんご