Support » Plugins and Hacks » Return an excerpt encoded with UTF8

Return an excerpt encoded with UTF8

  • Hey,

    First, thanks for your plugin. I just discover it and honestly it rocks :p
    But, i’m french so i Looove weird letters like é,à,è… And the function showexcerpt() don’t return the text as a UTF8 encoded text.
    I made the modification on my own WP install but it can be cool to add it in the next version.

    To do it, just edit the line 48 in excerpt_function.php and remplace it by
    return str_replace($morestyle, ““.$morestyle.”“, utf8_encode($content));

    Hope it helps,

    Greetings from France


Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Allen



    That’s a great idea…you’ll notice I have a function in excerpt_function.php that tries to replace weird letters, but it appears it didn’t get yours…so I’ll try adding this as an option to make sure this works in case my function doesn’t take care of it.
    Also, can you give me a URL of the RSS feed where you found you needed this fix so I can test it out?

    Thanks for pointing this out.


    Hello, every French RSS feed seems to need this fix. You can test it with the one i used : http://pinterest.com/bienchezsoi/architecture-et-couleurs/rss

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Return an excerpt encoded with UTF8’ is closed to new replies.