Forums

Yet Another Related Posts Plugin
Issues with accents : how I fixed it (3 posts)

  1. fzilbermann
    Member
    Posted 1 year ago #

    Hello,

    Adding to the issue I had beetween my local and online installations with Yarpp which was due to a conflict with the Podcasting plugin, I had another issue.

    Localy, the keywords inserted in the yarpp_keywords_cache table were fine, even with accentuated characters in the keywords.

    Online, I realized, looking at the table, that keywords were cut just before an accentuated character, hence the keyword "vidéo" was stored as "v" ...

    Tracking the outputs in the different functions of the yarpp plugin, I discovered that I had to replace line 11 of keywords.php :

    $wordlist = mb_split('\s*\W+\s*', mb_strtolower($source))

    by

    $wordlist = mb_split('\s*\W+\s*', mb_strtolower($source , get_option('blog_charset')));

    Hence specifying the encoding. Weird because I thought on the moment 'mb_regex_encoding(get_option('blog_charset'))' was doing the encoding stuff and it looks like it works on my local WP and not online.

    I noticed my local installation on XAMPP is PHP 5.3 powered and online it's still 5.2.10.

    http://wordpress.org/extend/plugins/yet-another-related-posts-plugin/

  2. fzilbermann
    Member
    Posted 1 year ago #

    Damn didn't see and I can't edit anymore but I meant "... the keyword 'vidéo' was stored as 'vid' "

  3. Great. I just fixed this in the next beta, 3.2.3b1:

    http://downloads.wordpress.org/plugin/yet-another-related-posts-plugin.3.2.3b1.zip

    Please let me know if that resolves the issue. Thanks for your detailed report!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

  • RSS feed for this topic
  • Started 1 year ago by fzilbermann
  • Latest reply from mitcho (Michael Yoshitaka Erlewine)
  • This topic is not a support question
  • WordPress version: 3.1.1