Instead of a FileWriter try to use a FileOutputStream instead. Specifying a Writer assumes that the encoding is handled by the specified Writer, this is normally (unless otherwise specified) the platform's default encoding.
Using an OutputStream will use the encoding specified in the OutputFormat. Regards, Edwin http://www.edankert.com/ ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ dom4j-user mailing list dom4j-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dom4j-user