The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Parteibuch Aggregator
[resolved] Fixes for UTF-8 HTML entities/specialchars, (2 posts)

  1. rcain
    Posted 5 years ago #

    Anyone suffering strange characters and spurious/double & encoding of UTF-8 HTML entities such as ', etc, etc bespeckling their output, heres the fix that worked for me::

    file: bdp-rssaggregator-db.php, function updateItem, around line 1055:
    after: global $wpdb, $bdprss_search;
    add something like the line:
    (function_exists('get_option') && ($scl_charset = get_option( 'blog_charset' ))) || ($scl_charset = 'UTF-8');

    then, around line 1093 in the sql update statement, change:
    "$this->iitemname='".mysql_real_escape_string(htmlentities($title))."', ".


    "$this->iitemname='".mysql_real_escape_string(htmlentities($title,ENT_COMPAT,$scl_charset,FALSE))."', ".

    and later in the same func, in the sql insert statement around line 122 ish, change:



    that's it, no more garbling.

  2. rcain
    Posted 5 years ago #

    errata: that last line number should have been 'around line 1220 ish' - ie. still in the updatItem function.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Parteibuch Aggregator
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic