At 9:06 AM +1000 3/21/07, Jon Stephens wrote:
> > I have developing a French website using PHP & Ajax. In that I
>tried to display some French texts from mysql database using Ajax.
>Form local I got the text from db with
>> Correct accents but in online French accents are missing. The text
>>displays like this "de r?isation pour regroup?a majorit?es ". I
>>declared following code in the head section of the file.
>>
>> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>>"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>> <html xmlns="http://www.w3.org/1999/xhtml">
>> <head>
>> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
>> <script src="include/showartical.js" type="text/javascript"
>>language="javascript" > </script>
>> </head>
>> When i display the text with out using Ajax I get the French text perfectly.
>>
> > Please help me how to display French text without missing any
>accents using PHP & Ajax.
In my experience there is a big problem with that in Safari. All
browsers (as other have replied already) prefer UTF-8 by default, and
it would certainly be a good idea that you switch everything to
UTF-8. However I was unable to have Safari read a simple UTF-8 text
file. UTF-8 XML files are OK, but I could not have Safari read a mere
UTF-8 text, as it always reads it as ISO-8859-1 no matter what I
specify in the various headers.
Emmanuel
.