Have you tried

> I have a problem with getting the intended output encoding with Xalan-j
2.2
> as simple DOM-to-XML selializer.
...
...


> //  transformer.setOutputProperty (OutputKeys.ENCODING, "windows-1251");

Uncomment this line, please.

>   FileOutputStream fos = new FileOutputStream ("E:\\test.xml");
>   OutputStreamWriter out = new OutputStreamWriter (fos, "windows-1251" );
>   StreamResult result = new StreamResult (out);

Try using a FileWriter:

FileWriter           fw = new FileWriter("E:\\text.xml");
StreamResult      result = new StreamResult(fw);


What did you get now?


    - Isaac


Reply via email to