mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-25 19:38:53 +00: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:
parent
27a24d0a67
commit
6f6750b629
1 changed files with 2 additions and 1 deletions
|
@ -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('');
|
||||
|
|
Loading…
Add table
Reference in a new issue