Hi,

My problem is solved. I find out that my input xml contains Turkish  characters 
with these codes : 

        Ş : 222
        İ : 221 ...

All my turkish characters are in range of 0-255. so i tried to give encoding 
ISO8859_1 for both of input and output streams.(it works without giving them 
because it is default for streams on unix...) Now my file is correct. 

I also checked sun.io.CharToByteConverter, and it is available. 

In my opinion when i used ISO8859_9 it converts my turkish characters to their 
ISO8859_9 equivalent codes. (350,304...)

It is interesting that when i perform transform with this code piece : 

transformer.transform(new StreamSource("xin.xml"), 
           new StreamResult(new java.io.FileOutputStream("xout.xml")));

it does not work and again it produces 350,304 codes for some characters. Maybe 
it uses stylesheet encoding. 

Thanks for help and quick response. 

Regards. 

Engin ERTİLAV

Reply via email to