Tue, 11 Mar 2008 13:08:55 -0700 (PDT), /Rob Davis-5/:
So in conclusion if I use solution 2 - then I get the desired encoding - I've got a work around - my problem is solved. But LSoutput setEncoding("UTF-8") DOES NOT WORK so i'd still like to know why
In both cases you're serializing to a character stream where the character stream controls the encoding. Just don't do that and set a byte stream to the serializer so it can control the encoding. As to the exact reason why your first case fails, you should have read the FileWriter class documentation <http://java.sun.com/j2se/1.5.0/docs/api/java/io/FileWriter.html>:
Convenience class for writing character files. The constructors of this class assume that the default character encoding and the default byte-buffer size are acceptable. To specify these values yourself, construct an OutputStreamWriter on a FileOutputStream.
-- Stanimir --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]