Forums

qTranslate
Missing umlauts in post dates (2 posts)

  1. jkdsouljah
    Member
    Posted 5 months ago #

    Hi all

    I'm using WordPress 3.2.1 and the latest version of qtranslate 2.5.24. I have it all working perfectly for a bilingual German/English website except for one tiny detail. I call post dates in my template using <?php the_date('[:en]l, j F Y[:de]l, j. F Y'); ?>) - and this works. It gets translated, but characters containing an umlaut, such as ä, are replaced with a question mark. I thought it may have been a database issue since I've actually run the same set up on several testing sites before migrating everything to our own server, and it was fine previously. I went through the database changing all the tables from utf8_general_ci to utf8_unicode_ci, to no avail. Umlauted characters work fine in the rest of the site, so the encoding overall is fine! So now I'm at a loss at the moment. Any ideas?

    Here is a link to a culprit case:
    http://inhousedev.gsis.edu.hk/revamp/index.php/category/pressclippings?lang=de

    Many thanks!

    http://wordpress.org/extend/plugins/qtranslate/

  2. jkdsouljah
    Member
    Posted 5 months ago #

    I've also tried wrapping the call to the date with htmlentities, as follows:

    <?php _e(
        htmlentities(
            strftime('%A, %e %B %Y at %I:%M %p',
                strtotime(
                    the_time('j F Y', '', '', FALSE)
                )
            )
        )
    ) ?>

    Which was suggested here and the closest I found to a solution, but still got M�rz instead of März.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags