Q: My titles are showing broken characters, what can I do to fix this?

This can be happening due to a number of reasons, however, the first thing we recommend doing is asking your hosting provider to make sure you’ve got the latest stable version of PHP.

If this isn’t possible, you can use the filter below. 

add_filter( 'wprss_ftp_converter_post_title', 'my_unicode_title', 10, 2);
    function my_unicode_title($title, $source) {
      return html_entity_decode($title, 0, 'UTF-8');
}

Once you’ve done this, permanently delete the affected posts and re-fetch the feed source.

This will decode non-ASCII characters encoded as HTML entities during import.


How do I add this filter to my site?

Follow the step-by-step instructions below to add this filter to your WordPress site.

  1. Copy the code you need from above.
  2. Go to your WordPress site's dashboard.
  3. Go to Plugins > Add New.
  4. Search for Code Snippets, then install and activate the plugin.
  5. Once installed and activated, go to Snippets in your dashboard menu.
  6. Click on Add New.
  7. Add a Title, which could be the title of this article.
  8. Paste the code you copied in step 1 to the Code section.
  9. Add a Description or Tags if you wish to do so. It is not required.
  10. Click on Save Changes and Activate to save the filter and activate it.
    1. Or click on Save Changes to save the filter and activate it later.
  11. Your action or filter is now stored and active on your site.

Still need help? Contact Us Contact Us