http://www.mediawiki.org/wiki/Special:Code/MediaWiki/88301

Revision: 88301
Author:   yaron
Date:     2011-05-17 12:57:31 +0000 (Tue, 17 May 2011)
Log Message:
-----------
Added UTF-8 encoding for data retrieved from DB

Modified Paths:
--------------
    trunk/extensions/ExternalData/ED_Utils.php

Modified: trunk/extensions/ExternalData/ED_Utils.php
===================================================================
--- trunk/extensions/ExternalData/ED_Utils.php  2011-05-17 12:52:31 UTC (rev 
88300)
+++ trunk/extensions/ExternalData/ED_Utils.php  2011-05-17 12:57:31 UTC (rev 
88301)
@@ -258,7 +258,10 @@
                                // doesn't get chopped off to just "b").
                                $new_row = array();
                                foreach ( $vars as $i => $column_name ) {
-                                       $new_row[$column_name] = $row[$i];
+                                       // Data that comes from the DB will
+                                       // (always?) be in ISO-8859-1 format -
+                                       // convert it to UTF8.
+                                       $new_row[$column_name] = utf8_encode( 
$row[$i] );
                                }
                                $rows[] = $new_row;
                        }


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to