bbPress

Simple, Fast, Elegant

bbPress support forums » Troubleshooting

swedish letters in the plugin quote

(5 posts)
  • Started 1 year ago by flaerpen
  • Latest reply from mikenolan
  • This topic is not resolved

Tags:

  1. Hello, I love the function to qoute another person - thanks!

    But when I'm trying to qoute a text with swedish letters (like: "å,ä,ö") I can't get it to work. I get "ä" instead :S

    Is there a simple soulution for this problem?

    Posted 1 year ago #
  2. The original post is OK but the quoted characters are mixed up only?

    Posted 1 year ago #
  3. There is a line in the quote plugin that converts all special characters to their HTML equivalents.

    if ($row) echo htmlentities('<blockquote>'.$row->post_text.'</blockquote>');

    (Some code is cut off to the side because of the forum's limited width) I assume that the problem lies here. My guess is that it returns a different character format to the one your browser is using?

    Get your quote.php file in your plugin folder and change this code to

    if ($row) echo htmlentities('<blockquote>'.$row->post_text.'</blockquote>', ENT_COMPAT, 'UTF-8');

    Upload the new version to your server and see if it works. :) If not, undo changes, save and upload the original file.

    That's just my guess; the first thing I would try. I don't actually know.

    Posted 1 year ago #
  4. It works :D

    Thanks!

    Posted 1 year ago #
  5. Thanks also - I've updated the plugin and tagged 0.2.

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.