mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 09:15:55 +00:00
magpie: convert encoding if needed before parser instantiation
This commit is contained in:
@@ -149,11 +149,11 @@ class MagpieRSS {
|
||||
$enc = mb_detect_encoding($string);
|
||||
}
|
||||
|
||||
$source = mb_convert_encoding($source, "UTF-8", $enc);
|
||||
|
||||
list($parser, $source) = $this->create_parser($source,
|
||||
$output_encoding, $input_encoding, $detect_encoding);
|
||||
|
||||
$source = mb_convert_encoding($source, "UTF-8", $enc);
|
||||
|
||||
$this->parser = $parser;
|
||||
|
||||
xml_set_object( $this->parser, $this );
|
||||
|
||||
Reference in New Issue
Block a user