Hi, Daniel --
> -----Original Message-----
> From: Daniel H�gg [mailto:[EMAIL PROTECTED]
> FileOutputStream file1 = new FileOutputStream("doc.xml");
This is good! Using a FileWriter would subject you to the whim of your
operating system when converting characters into bytes.
> file1.write(stringOut.toString().getBytes());
This is bad for precisely the same reason that using a FileWriter would have
been bad. You want:
file1.write(stringOut.toString().getBytes("UTF-8"));
A bare getBytes call uses the local operating system's default encoding.
-- Paul
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]