@@ 95-100 (lines=6) @@ | ||
92 | ||
93 | // The RSS library only understands UTF-8, US-ASCII and ISO-8859-1, so only give it this. For other encodings we'll default to UTF-8. |
|
94 | ||
95 | if($this->encoding == "UTF-8" || $this->encoding == "US-ASCII" || $this->encoding == "ISO-8859-1") { |
|
96 | $this->parser = xml_parser_create($this->encoding); |
|
97 | } else { |
|
98 | $this->parser = xml_parser_create("UTF-8"); |
|
99 | $this->encoding = "UTF-8"; |
|
100 | } |
|
101 | ||
102 | // Check if we have valid xml |
|
103 | $parsetest = xml_parse(xml_parser_create($this->encoding), $xmldata); |
@@ 152-157 (lines=6) @@ | ||
149 | ||
150 | // The RSS library only understands UTF-8, US-ASCII and ISO-8859-1, so only give it this. For other encodings we'll default to UTF-8. |
|
151 | ||
152 | if($this->encoding == "UTF-8" || $this->encoding == "US-ASCII" || $this->encoding == "ISO-8859-1") { |
|
153 | $this->parser = xml_parser_create($this->encoding); |
|
154 | } else { |
|
155 | ||
156 | $this->parser = xml_parser_create("UTF-8"); |
|
157 | } |
|
158 | ||
159 | ||
160 | //$this->parser = xml_parser_create(); |