--- Pete <[EMAIL PROTECTED]> wrote: > > >I am creating an XML output (part of an Ajax system), where the output > >sometimes contains French accented characters. > > Of course, 5 minutes after sending the post, the light goes on! > > >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. > > But it should be > header("Content-Type: text/xml; charset=iso-8859-1", true); > > -- > Pete Clark
That may solve your problem but I would also recommend using the htmlentities() function to process your values. A lower case E with an acute accent will become é so searching values can be tricky, especially if the user does not input the accent. However, for outputs, it is quite useful. James