Encoding problem with date

Hi everyone. Since I'm on the 1.2.6 I have some problem with encoding buyt just with the album date callled by the function <?php printAlbumDate(""); ?>

The rest of my text on the same page (index.php) is correctly encoded.

Even if I change the encoding with my browser, the problem remains.

Any idea ? So to understand the process how the date with numbers is translated in date with letters and where is the localization for my language just for date (it is not in the zenphoto.po file).

Thanks.

Comments

  • Did setup give you any warning messages? PHP does the data formatting based on your locale, but if the proper PHP parts are not installed, no translation takes place.
  • The translation is correct but there is an encoding problem. And as changing encoding with browser doesn't change anything I supposed the problem came upstream (in the generated HTML the date is already like this : "février" instead of "février".

    Any warning with setup.

    I must say that this problem is just for dates. All the rest is Ok (front and back stage).
  • That very much sounds like you do not have mbstring support.
  • Hi, how can I check if I have the mbstring support ?
    The problem is still there with the 1.2.7 and on my weberver AND on my local install with MAMP (on a Mac).

    Thanks.
  • acrylian Administrator, Developer
    Setup will tell you actually and the problem is on your server. MAMP on Mac does have mbstring (I use that myself).
  • Thanks for answering my question.
    I've changed what suggested by the setup but no changes.
    More over I've notice that the dates from the archives pages are OK but not the one on the search page result or on the index galerie.

    Weird ...

    I've got other scripts like Wordpress and there's no problem. BEfore the 1.2.6 I had no problem with this with zenphoto.
  • acrylian Administrator, Developer
    Wordpress translates the months names manually (I think it was at least that way) while we rely on the gettext and locale stuff installed on your server. You might need to restart the LAMP server to see any effect. Also clear the browser cache and make sure that you don't have the html cache enabled.

    Make also sure that everything is in the right encoding, especially the theme files ifself.
Sign In or Register to comment.