Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

french characters in xml file 1

Status
Not open for further replies.
Jul 28, 2005
358
FR
I have just had to create a script using php that makes an xml file that will be included in a website.

It was a majot pain having to go through all the French special characters and using php's preg_replace to put the html codes in.

Is there a simple way so xml will accept these special characters without complaining? I don't want to get to the situation where if another french character appears in the data I am puting in the xml I have to recode for that too.

I read that using a different encoding should do it, but when I changed from UTF-8 to UTF-16 as I read it just brought up an error saying I can't (can't remember the exact error, but this was viewing it in IE6 - English version).

Thanks,

Richard

Thanks,

Richard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top