Category Archives: PHP

Magpie RSS and special characters

Your site is not in english and you are trying to import an RSS feed by using the excellent Magpie RSS ? If the feed language is in french for instance you’ll probably get weird characters coming up on your display page.

The solution is pretty simple. Go in the folder where Magpie RSS is installed and look for rss_fetch.inc

Around line 357 set the default output and input encoding to UTF-8 like this :

  if ( !defined('MAGPIE_OUTPUT_ENCODING') ) {
 define('MAGPIE_OUTPUT_ENCODING', 'UTF-8');
 }
 
 if ( !defined('MAGPIE_INPUT_ENCODING') ) {
 define('MAGPIE_INPUT_ENCODING', 'UTF-8');
 }