-----Original Message----- From: Robert Cummings [mailto:robert@xxxxxxxxxxxxx] Sent: 17 April 2008 10:38 To: Angelo Zanetti Cc: php-general@xxxxxxxxxxxxx Subject: Re: FRench characters not displayed correctly On Thu, 2008-04-17 at 09:47 +0200, Angelo Zanetti wrote: > Hi all. > > We have taken over a site and a problem we have is that French special > characters aren't displaying correctly, they are displaying a weird square > block. > > I have checked the content type and it's as follows: > > <meta http-equiv="Content-Type" content="text/html;charset=utf-8" > > > I also notice that the "charset=iso-8859-1" is missing in the above meta > tag, could this be affecting the characters? You certainly wouldn't want both utf-8 and iso-8859-1 declared at the same time. It sounds like what you want is iso-8859-1 and NOT utf-8. Check the encoding of either your files or your database content. Also check what headers PHP is sending to the browser. If you're using Firefox you can check the page info to see what charset it thinks it received. Cheers, Rob. -- Thanks Robert, I have the following headers: http://fr.xxxx.com/student/themes/english/locker_room/student.html GET /student/themes/english/locker_room/student.html? HTTP/1.1 Host: fr.xxxx.com User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q= 0.8,image/png,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Referer: http://fr.xxxx.com/student/themes/english/locker_room/student.html Cookie: PHPSESSID=818678404c170c8e4f5d237c1d0280a8 If-Modified-Since: Sat, 17 Nov 2007 11:40:26 GMT If-None-Match: "6b97e-a9d-619b9e80" Cache-Control: max-age=0 HTTP/1.x 304 Not Modified Date: Thu, 17 Apr 2008 08:31:32 GMT Server: Apache/2.0.55 (Unix) PHP/5.1.2 Connection: Keep-Alive Keep-Alive: timeout=15, max=200 Etag: "6b97e-a9d-619b9e80" ----------------------------- Now I see that the headers have: Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Which to me seems like it is sending both ISO-8859-1 and UTF-8? What else should I be checking for? Could it be a PHP problem where PHP isn't decoding the characters properly? Thanks again. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php