Problem solved!Here's the code:TransformerFactory tf = TransformerFactory.newInstance();t = tf.newTransformer();t.setOutputProperty("encoding", "ISO-8859-1");