RE: [PHP] FRench characters not displayed correctly

2008-04-24 Thread Angelo Zanetti
-Original Message- From: Ford, Mike [mailto:[EMAIL PROTECTED] Sent: 17 April 2008 12:25 To: php-general@lists.php.net Subject: RE: [PHP] FRench characters not displayed correctly On 17 April 2008 10:05, Robert Cummings advised: On Thu, 2008-04-17 at 10:57 +0200, Angelo Zanetti wrote

[PHP] FRench characters not displayed correctly

2008-04-17 Thread Angelo Zanetti
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

RE: [PHP] FRench characters not displayed correctly

2008-04-17 Thread Angelo Zanetti
-Original Message- From: Angelo Zanetti [mailto:[EMAIL PROTECTED] Sent: 17 April 2008 09:48 To: php-general@lists.php.net Subject: [PHP] FRench characters not displayed correctly Hi all. We have taken over a site and a problem we have is that French special characters aren't

Re: [PHP] FRench characters not displayed correctly

2008-04-17 Thread Robert Cummings
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

RE: [PHP] French characters not displayed correctly

2008-04-17 Thread Per Jessen
Angelo Zanetti wrote: I have also found that we can do this: html lang=fr But I am interested in finding out if the doctype declaration is a contributing factor. Neither will affect the character set used when rendering the page. The meta http-equiv=Content-Type in a page is ignored by

RE: [PHP] FRench characters not displayed correctly

2008-04-17 Thread Angelo Zanetti
-Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED] Sent: 17 April 2008 10:38 To: Angelo Zanetti Cc: php-general@lists.php.net Subject: Re: [PHP] FRench characters not displayed correctly On Thu, 2008-04-17 at 09:47 +0200, Angelo Zanetti wrote: Hi all. We have taken

RE: [PHP] FRench characters not displayed correctly

2008-04-17 Thread Robert Cummings
On Thu, 2008-04-17 at 10:57 +0200, Angelo Zanetti wrote: Thanks Robert, I have the following headers: http://fr..com/student/themes/english/locker_room/student.html GET /student/themes/english/locker_room/student.html? HTTP/1.1 Host: fr..com User-Agent: Mozilla/5.0

RE: [PHP] FRench characters not displayed correctly

2008-04-17 Thread Angelo Zanetti
-Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED] Sent: 17 April 2008 11:05 To: Angelo Zanetti Cc: php-general@lists.php.net Subject: RE: [PHP] FRench characters not displayed correctly On Thu, 2008-04-17 at 10:57 +0200, Angelo Zanetti wrote: Thanks Robert, I

RE: [PHP] FRench characters not displayed correctly

2008-04-17 Thread Robert Cummings
On Thu, 2008-04-17 at 11:11 +0200, Angelo Zanetti wrote: -Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED] Sent: 17 April 2008 11:05 To: Angelo Zanetti Cc: php-general@lists.php.net Subject: RE: [PHP] FRench characters not displayed correctly On Thu, 2008-04

RE: [PHP] FRench characters not displayed correctly

2008-04-17 Thread Per Jessen
Angelo Zanetti wrote: Thanks again, but as far as I have read, it seems that UTF-8 has better handling for French characters? Not really - I'm pretty certain ISO-8859-1 will cover all of the special french characters. But it's irrelevant - if your code/pages are written in UTF8, you won't get

RE: [PHP] FRench characters not displayed correctly

2008-04-17 Thread Per Jessen
Robert Cummings wrote: No, that's what kind of content the server is willing to accept from various sources such as POST. You want the following somewhere near the beginning of your script: ?php header( 'Content-type: text/html; charset=iso-8859-1' ); ? I think that is better done

RE: [PHP] FRench characters not displayed correctly

2008-04-17 Thread Robert Cummings
On Thu, 2008-04-17 at 11:39 +0200, Per Jessen wrote: Robert Cummings wrote: No, that's what kind of content the server is willing to accept from various sources such as POST. You want the following somewhere near the beginning of your script: ?php header( 'Content-type:

RE: [PHP] FRench characters not displayed correctly

2008-04-17 Thread Per Jessen
Robert Cummings wrote: ?php header( 'Content-type: text/html; charset=iso-8859-1' ); ? I think that is better done with the default_charset setting in php.ini. I don't. But then I have several projects and some use utf-8 (preferred) and some use iso-8859-1 (not preferred). I

RE: [PHP] FRench characters not displayed correctly

2008-04-17 Thread Ford, Mike
On 17 April 2008 10:05, Robert Cummings advised: On Thu, 2008-04-17 at 10:57 +0200, Angelo Zanetti wrote: Thanks Robert, I have the following headers: http://fr..com/student/themes/english/locker_room/student.html GET /student/themes/english/locker_room/student.html? HTTP/1.1

RE: [PHP] FRench characters not displayed correctly

2008-04-17 Thread Robert Cummings
On Thu, 2008-04-17 at 11:24 +0100, Ford, Mike wrote: On 17 April 2008 10:05, Robert Cummings advised: On Thu, 2008-04-17 at 10:57 +0200, Angelo Zanetti wrote: Thanks Robert, I have the following headers: http://fr..com/student/themes/english/locker_room/student.html