• Resolved DiGa1988

    (@diga1988)


    Hello,

    when I update Relevanssi from version 3.5.8 to 3.5.10 some spacial chars in the excerpts do not show properly anymore. &-a-m-p; (without the -) works fine and shows up as &, but ü shows up as ü.

    In 3.5.8 everything worked, so I don’t think I have to add my code here?

    Regards

    • This topic was modified 8 years, 11 months ago by DiGa1988.
    • This topic was modified 8 years, 11 months ago by DiGa1988.
    • This topic was modified 8 years, 11 months ago by DiGa1988.
    • This topic was modified 8 years, 11 months ago by DiGa1988.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Mikko Saari

    (@msaari)

    Sorry, but I can’t reproduce this error on my site. ü shows up as ü, as it should.

    There’s some new code to fix HTML code appearing in excerpts, which is probably to blame here, but as I can’t reproduce the issue, I’m not sure why. Is your site using UTF-8 as the character set? Is there a reason you’re using ü instead of just ü?

    Plugin Author Mikko Saari

    (@msaari)

    Try finding this line in lib/excerpts-highlights.php:

    $excerpt = html_entity_decode($excerpt);

    and change it to:

    $excerpt = html_entity_decode($excerpt, ENT_QUOTES, 'UTF-8');

    Does that solve the problem?

    Thread Starter DiGa1988

    (@diga1988)

    jep, thx!

    It’s in 3.5.11. Thanks for that 😉

    • This reply was modified 8 years, 11 months ago by DiGa1988.
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘special chars again’ is closed to new replies.