diff options
author | Marc Alexander <admin@m-a-styles.de> | 2017-12-27 09:04:15 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2018-01-01 18:55:25 +0100 |
commit | 6f6750b6294232e6cd11eb38d0cb8492d1e1245a (patch) | |
tree | 557c53e36bd4e060ebfd8afa9bb3f8fe5c5199b2 /phpBB/phpbb/db/driver/mssqlnative.php | |
parent | 27a24d0a677a3f1fb0dcf2393859eb37fe3bc0c3 (diff) | |
download | forums-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.php | 3 |
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(''); |