diff options
author | David M <davidmj@users.sourceforge.net> | 2006-12-03 16:33:32 +0000 |
---|---|---|
committer | David M <davidmj@users.sourceforge.net> | 2006-12-03 16:33:32 +0000 |
commit | d63ccbe8ac2a5c9adeff58b446a730cbca48c4e8 (patch) | |
tree | 3bde35f238d2c7b0f2d32bebc56d7239e708a0f8 /phpBB/includes/db | |
parent | 2b4525ae97dc0ab6d7d9391fe4c126bdf7d15dbb (diff) | |
download | forums-d63ccbe8ac2a5c9adeff58b446a730cbca48c4e8.tar forums-d63ccbe8ac2a5c9adeff58b446a730cbca48c4e8.tar.gz forums-d63ccbe8ac2a5c9adeff58b446a730cbca48c4e8.tar.bz2 forums-d63ccbe8ac2a5c9adeff58b446a730cbca48c4e8.tar.xz forums-d63ccbe8ac2a5c9adeff58b446a730cbca48c4e8.zip |
- FreeTDS builds lets you specify a character set encoding, lets take advantage of that
git-svn-id: file:///svn/phpbb/trunk@6703 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/db')
-rw-r--r-- | phpBB/includes/db/mssql.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/phpBB/includes/db/mssql.php b/phpBB/includes/db/mssql.php index 439cb725fb..037cef81bf 100644 --- a/phpBB/includes/db/mssql.php +++ b/phpBB/includes/db/mssql.php @@ -46,6 +46,11 @@ class dbal_mssql extends dbal } } + if (ini_get('mssql.charset')) + { + ini_set('mssql.charset', 'UTF-8'); + } + return ($this->db_connect_id) ? $this->db_connect_id : $this->sql_error(''); } |