r93474 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r93473‎ | r93474 | r93475 >
Date:18:13, 29 July 2011
Author:preilly
Status:ok
Tags:
Comment:
add call to mb_convert_encoding for UTF-8 issue
Modified paths:
  • /trunk/extensions/MobileFrontend/MobileFrontend.php (modified) (history)

Diff [purge]

Index: trunk/extensions/MobileFrontend/MobileFrontend.php
@@ -49,7 +49,7 @@
5050 $wgHooks['SkinTemplateOutputPageBeforeExec'][] = array( &$wgExtMobileFrontend, 'addMobileFooter' );
5151
5252 class ExtMobileFrontend {
53 - const VERSION = '0.5.7';
 53+ const VERSION = '0.5.8';
5454
5555 private $doc;
5656
@@ -373,6 +373,7 @@
374374 }
375375
376376 public function DOMParse( $html ) {
 377+ $html = mb_convert_encoding($html, 'HTML-ENTITIES', "UTF-8");
377378 libxml_use_internal_errors( true );
378379 $this->doc = new DOMDocument();
379380 $this->doc->loadHTML( '<?xml encoding="UTF-8">' . $html );

Follow-up revisions

RevisionCommit summaryAuthorDate
r93475merged changes from r93474preilly18:19, 29 July 2011

Status & tagging log