saving chinese content in a text/xml file using php?

gerald m

New member
Friends,

I need to save the chinese content feed as input by the user to save it in a text/xml file using php.

I am using encoding format as UTF-8 in the xml encoding tag and writing the file in UTF-8, but still while writing the text content it appears as junk/normal text. I need to retain the chinese characters in the xml/text file.

Kindly help me out if there are any encoding to be used or any other file saving methods.

Thanks,
Gerald P.
 
Back
Top