Date in French - Displays wrong French characters

I am struggling with the following code. It should display the current day of the week, date, month and year in French. I get the day, date and year just fine but the month is not displaying the right French characters;

[php]
date_default_timezone_set(‘America/Montreal’);
$date = date(“format”, $timestamp);
setlocale(LC_TIME, ‘fr_CA’);
echo strftime(’ %A %d %B %Y’);
[/php]

I tried this code but the wrong month is displayed, December not February.

[php]
$date_string = utf8_encode(strftime(’ %A %d %B %Y’, strtotime($post->post_date)));
[/php]

What am I missing here?

[size=14pt]OK I got it working now… [/size]:D[size=10pt][/size]

[php]
echo $date_string = utf8_encode (strftime(’ %A %d %B %Y’));
[/php]

[size=10pt]Sorry if I wasted anyone’s time.[/size] :-[

Sponsor our Newsletter | Privacy Policy | Terms of Service