Isaac, thank you for your useful hint, but what concerns Xalan - the result
is the same: correct encoding declaration in the header and &#NNNN in the
data :(

Regards,
Sergey

----- Original Message -----
From: "Isaac S." <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 08, 2002 3:55 PM
Subject: Re: encoding problem with Xalan-j 2.2


> 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