WordPress.org

Make WordPress Core

Ticket #4330: rss-encoding.diff

File rss-encoding.diff, 648 bytes (added by nbachiyski, 13 years ago)
  • wp-includes/rss.php

     
    4242                if ( !function_exists('xml_parser_create') )
    4343                        trigger_error( "Failed to load PHP's XML Extension. http://www.php.net/manual/en/ref.xml.php" );
    4444
    45                 $parser = @xml_parser_create();
     45                $parser = @xml_parser_create("UTF-8");
    4646
    4747                if ( !is_resource($parser) )
    4848                        trigger_error( "Failed to create an instance of PHP's XML parser. http://www.php.net/manual/en/ref.xml.php");
     
    852852                return false;
    853853        }
    854854}
    855 ?>
    856  No newline at end of file
     855?>