1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-03-21 08:00:46 +01:00

[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
This commit is contained in:
Marc Alexander 2017-12-27 09:04:15 +01:00
parent 27a24d0a67
commit 6f6750b629

View File

@ -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('');