Reply To: Email subject line for notifications converting characters
Hi, the apostrophe (simple quote) was displayed as ' ; in the email subject so I fixed this by adding this line:
$topic_title = mb_convert_encoding($topic_title, 'UTF-8', 'HTML-ENTITIES');
in myrsite\wp-content\plugins\bbpress\includes\common\functions.php, lines 1094 and 1252 (bbpress 2.5.12). Between these 2 lines:
$topic_title = strip_tags( bbp_get_topic_title( $topic_id ) );
$topic_title = mb_convert_encoding($topic_title, 'UTF-8', 'HTML-ENTITIES');
$topic_content = strip_tags( bbp_get_topic_content( $topic_id ) );
I’m a beginner with php so maybe there is a better way to achieve this, but worked great for me 🙂