Month name not showing in French

  • Hi everyone,


    I'm trying to display a list of news with a date for each of them using Perch.

    The website is in English and in French. I have no problem displaying the months in English. It is also working in French except for the months with an accent like "février, décembre, etc." which aren't displayed at all (in fact the whole date doesn't show).


    Here is what I've tried :


    My website is set to UTF-8.


    When the user switches to French, PHP sets the local time to French.

    Code
    1. setlocale(LC_TIME,"fr_CH");


    And here is my code in Perch to display the date. :burd1:


    Code
    1. <p><perch:content id="en_news_date" type="date" label="Date News EN" size="m" format="%e %B %Y" native required></p>


    And a few screenshots of the result :



    As you can see on the right, "décembre" in French is not showing up.

    Does anyone have an idea of what's happening here ? None of my researches were successful... it seems to me that it might be a Perch-related issue.


    Thank you in advance for your help. :)

  • Gareth S

    Approved the thread.