aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/db/driver/mssqlnative.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2017-12-27 09:04:15 +0100
committerMarc Alexander <admin@m-a-styles.de>2018-01-01 18:55:25 +0100
commit6f6750b6294232e6cd11eb38d0cb8492d1e1245a (patch)
tree557c53e36bd4e060ebfd8afa9bb3f8fe5c5199b2 /phpBB/phpbb/db/driver/mssqlnative.php
parent27a24d0a677a3f1fb0dcf2393859eb37fe3bc0c3 (diff)
downloadforums-6f6750b6294232e6cd11eb38d0cb8492d1e1245a.tar
forums-6f6750b6294232e6cd11eb38d0cb8492d1e1245a.tar.gz
forums-6f6750b6294232e6cd11eb38d0cb8492d1e1245a.tar.bz2
forums-6f6750b6294232e6cd11eb38d0cb8492d1e1245a.tar.xz
forums-6f6750b6294232e6cd11eb38d0cb8492d1e1245a.zip
[ticket/15055] Specify utf8 as character set in sqlsrv_connect
This is needed to be able to correctly retrieve unicode data from the db. PHPBB3-15055
Diffstat (limited to 'phpBB/phpbb/db/driver/mssqlnative.php')
-rw-r--r--phpBB/phpbb/db/driver/mssqlnative.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/phpbb/db/driver/mssqlnative.php b/phpBB/phpbb/db/driver/mssqlnative.php
index 50dce35baa..28bd3ceb42 100644
--- a/phpBB/phpbb/db/driver/mssqlnative.php
+++ b/phpBB/phpbb/db/driver/mssqlnative.php
@@ -50,7 +50,8 @@ class mssqlnative extends \phpbb\db\driver\mssql_base
$this->db_connect_id = sqlsrv_connect($this->server, array(
'Database' => $this->dbname,
'UID' => $this->user,
- 'PWD' => $sqlpassword
+ 'PWD' => $sqlpassword,
+ 'CharacterSet' => 'UTF-8'
));
return ($this->db_connect_id) ? $this->db_connect_id : $this->sql_error('');