WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] Character problem in calendar month name (28 posts)

  1. guix69
    Member
    Posted 1 year ago #

    Hello,
    When I click on the "next month link" inside the calendar, it gets loaded via ajax. The problem is that characters with accents (my locale is set to french) aren't displayed correctly. For example "é" gets displayed as "é" which is its utf8 form. I checked the script and if I add uft8_decode() to the function displaying the month name it fixes the pb but I don't think it's the proper way to do it. The charset of my pages is set to utf8.

    Thanks
    G.

    http://wordpress.org/extend/plugins/events-manager/

  2. agelonwl
    Member
    Posted 1 year ago #

    Have you tried to temporarily:

    - deactivating all other plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).
    - switching to the default theme to rule out any theme-specific problems

  3. guix69
    Member
    Posted 1 year ago #

    Same thing happens with the twenty-ten theme with all plugins deactivated.

  4. agelonwl
    Member
    Posted 1 year ago #

    do you have a sample link for us to see?

  5. guix69
    Member
    Posted 1 year ago #

  6. guix69
    Member
    Posted 1 year ago #

    don't like shortened links ? :)
    http://vc.nuagebleu.eu/marchand-de-vin/

  7. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    No, just might have slipped through with all the threads on here.

    I see what you mean, I'll try to reproduce this locally asap and fix. It may be an encoding issue on our side of things.

  8. guix69
    Member
    Posted 1 year ago #

    Thanks a lot (if I can help with the debugging I'd be glad to)

  9. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    I was trying to fix this and couldn't reproduce the problem, for me on 20 11 theme it translates and shows the accented e without a problem.

    Have you tried it on another theme e.g. the default WP one?

  10. guix69
    Member
    Posted 1 year ago #

    here is a test page on the 2011 theme
    http://vc.nuagebleu.eu/test/

    could it be because of some locale setting on the server ?

  11. agelonwl
    Member
    Posted 1 year ago #

    can you try this
    meta http-equiv="content-type" content="text/html;charset=utf-8" />
    instead of
    <meta charset="UTF-8" />

    or http://www.tipsandtricks-hq.com/how-to-fix-the-character-encoding-problem-in-wordpress-1480

  12. guix69
    Member
    Posted 1 year ago #

    @agelon, Thanks for the ideas
    The meta http-equiv is in place but doesn't work
    The change in config.php doesn't help (and screws up other texts in the menu :) )

  13. guix69
    Member
    Posted 1 year ago #

    What is weird is that the first load of the page is wrong. When you click the arrows to change the month it loads the correct characters...

  14. guix69
    Member
    Posted 1 year ago #

    Sorry it's the other way around. The first load is correct but the ajax loads are the ones with the problem (é -> é)

  15. agelonwl
    Member
    Posted 1 year ago #

    weird, if you try to browse template file at events-manager/templates/templates/calendar-small.php you will see that we are using standard date_i18n and/or maybe you try to use php print_r to see what's inside the array.

  16. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    strange, because I also tested this on my local and a test site, even the AJAX works for me with the correct formatting.

    Did you upgrade automatically or did you manually upload your files? It may be that your files aren't in utf-8 format. By default, we do ship them in utf-8 format.

  17. guix69
    Member
    Posted 1 year ago #

    I installed the plugin via the WP backoffice. But I'll check the encoding of the files.

  18. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    that could be why... I've seen that happen before. I advise you try and do it with the auto-updater/installer if possible.

  19. guix69
    Member
    Posted 1 year ago #

    I think we mean the same thing, the backoffice, the installer, which is available in wp-admin under plugins / add. Am I wrong?

  20. guix69
    Member
    Posted 1 year ago #

    I uninstalled it and installed the latest 5.3.1, same problem.

  21. guix69
    Member
    Posted 1 year ago #

    What is weird is the difference between the 2 calls to the template file.
    The first one displays characters correctly, the ajax call displays utf8 characters as if they were in a ISO-8859 page.

  22. guix69
    Member
    Posted 1 year ago #

    Just noticed what firebug says about the Response : Content-Type text/html; charset=iso-8859-1

  23. agelonwl
    Member
    Posted 1 year ago #

    I tried this one using the same wp localization (fr_FR) and seems to worked fine on my test site.

    btw, how about WP Settings > Reading > Encoding for pages and feeds ?

  24. guix69
    Member
    Posted 1 year ago #

    damn it, I installed it locally on my PC and it works correctly. Then there must be something wrong with the server but I wonder what...

  25. guix69
    Member
    Posted 1 year ago #

    I'll check the Apache config...
    I uncommented the line AddDefaultCharset UTF-8 in /etc/apache2/conf.d/charset but it doesn't help.

  26. Wbozon
    Member
    Posted 1 year ago #

    Same troubles with russian localisation.
    http://www.bild.me/bild.php?file=7350418events-manager.jpg

  27. agelonwl
    Member
    Posted 1 year ago #

    @Wbozon

    just to narrow down the problem have you tried to temporarily:

    - deactivating all other plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).
    - switching to the default theme to rule out any theme-specific problems

    Is this the same when you create new event while using default theme or all other plugins are disabled?

  28. Wbozon
    Member
    Posted 1 year ago #

    All plugin deactived. I installed a Twenty Twelve template, but the error appears again. The error occurs when I switch the months.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic