I have created a website using iso-8859-1
encoding, and I want to display the date in French.
Here is the file I use for test :
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="ISO-8859-1"/>
</head>
<body>
<?php setlocale(LC_ALL, "fr_FR.iso88591"); echo strftime("%A %d %B %Y."); ?>
</body>
</html>
When I open this file I get : Thursday 08 August 2013.
instead of Jeudi 08 Août 2013.
(french).
I have tried using UTF-8
and it works correctly but it is not what I want...
I have checked the language packages installed on my server and everything seems correct :
server$ sudo locale -a
C
C.UTF-8
français
french
fr_FR
fr_FR.iso88591
fr_FR.utf8
POSIX
If you have any ideas to solve this problem it would be very cool.
EDIT : typos corrected !