I am creating an XML output (part of an Ajax system), where the output
sometimes contains French accented characters.

In the source, I can see that the value of the characters is correctly
shown, up until the time it is echo()ed to the browser.  But the browser
is not interpreting it properly.

I have my header set as
Content-Type: text/xml; charset='utf-8'
by using 
header("Content-type: text/xml; charset='utf-8'");
at the top of the file.

If I use the line
$result=str_replace('é', 'é',$result);
then the accents appear correctly in the browser, and is also handled
correctly by the Ajax system.  But to do that for each possible
character is not very elegant.

Any suggestions?

-- 
Pete Clark

Reply via email to