Index: trunk/extensions/MobileFrontend/MobileFrontend.php |
— | — | @@ -49,7 +49,7 @@ |
50 | 50 | $wgHooks['SkinTemplateOutputPageBeforeExec'][] = array( &$wgExtMobileFrontend, 'addMobileFooter' ); |
51 | 51 | |
52 | 52 | class ExtMobileFrontend { |
53 | | - const VERSION = '0.5.7'; |
| 53 | + const VERSION = '0.5.8'; |
54 | 54 | |
55 | 55 | private $doc; |
56 | 56 | |
— | — | @@ -373,6 +373,7 @@ |
374 | 374 | } |
375 | 375 | |
376 | 376 | public function DOMParse( $html ) { |
| 377 | + $html = mb_convert_encoding($html, 'HTML-ENTITIES', "UTF-8"); |
377 | 378 | libxml_use_internal_errors( true ); |
378 | 379 | $this->doc = new DOMDocument(); |
379 | 380 | $this->doc->loadHTML( '<?xml encoding="UTF-8">' . $html ); |