WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Custom keywords don't get linked if words end with this letters : ä, ö, å

It works if those letters are inbetween. any idea how to fix this?

Custom Keywords :

  1. meäts, www.google.com - works
  2. tillhört, www.rediff.com - works
  3. Elektrobitissä, www.git.com - does not work
  4. tillhrtö, www.rediff.com - does not work

So out of the above keywords, 1 and 2 works. 3 and 4 does not work. If word ends with those special letters, word is not linked otherwise if letter appears in any position except last, it works.


share|improve this question
up vote 1 down vote accepted

The author is using string functions for single-byte encodings:

$url = substr($line, $lastDelimiterPos + 1 );
$keywords = substr($line, 0, $lastDelimiterPos);

But in WordPress everything is encoded in UTF-8, a multi-byte encoding. So each time you have a character in your keywords that needs more than one byte, something gets lost.

File a bug report and ask the author to read this article. He will use the mbstring functions then. Probably. :)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.