I have the following problem.

With a xml file that has foreign characters like below. (encoded in UTF-8.)

<
Name>���X�^���g���b�Z</Name>

castor outputs after modifications to the file

<
Name> &#x5dc;&#x5da; &#x5d0;&#x5ea; &#x5d4;&#x5e7;&#x5d9;&#x5e9;&#x5d5;&#x5e8;&#x5d9;&#x5d5;&#x5ea;</Name>


Below is a sample of my java code.

// Marshal out the data to the same XML file.
xml.marshal(new OutputStreamWriter(
new FileOutputStream(fileName), "UTF-8"));


I have even used FileWriter.

Can someone help. Can I fix this.

----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev

Reply via email to