From 8bf7aad24a4fa54977b90f2a30c9d4303aadf32b Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Mon, 5 Nov 2007 15:21:59 +0000 Subject: [PATCH] Force string to UTF-8 if we have mb stuff available. --- includes/DatabasePostgres.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/includes/DatabasePostgres.php b/includes/DatabasePostgres.php index 085d9bc676..edff892ef9 100644 --- a/includes/DatabasePostgres.php +++ b/includes/DatabasePostgres.php @@ -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); } -- 2.20.1