Force string to UTF-8 if we have mb stuff available.
authorGreg Sabino Mullane <greg@users.mediawiki.org>
Mon, 5 Nov 2007 15:21:59 +0000 (15:21 +0000)
committerGreg Sabino Mullane <greg@users.mediawiki.org>
Mon, 5 Nov 2007 15:21:59 +0000 (15:21 +0000)
includes/DatabasePostgres.php

index 085d9bc..edff892 100644 (file)
@@ -523,6 +523,9 @@ class DatabasePostgres extends Database {
        }
 
        function doQuery( $sql ) {
+               if (function_exists('mb_convert_encoding')) {
+                       return $this->mLastResult=pg_query( $this->mConn , mb_convert_encoding($sql,'UTF-8') );
+               }
                return $this->mLastResult=pg_query( $this->mConn , $sql);
        }