I'm in a project using 64bit UBUNTU-SERVER as WEBSERVER. In the project I chose the database Microsoft Sql Server 2012 which I have a use license acquired shortly.
With much effort I got the connection using some libs like sybase freetds ... for PHP-7. But I'm having a character encoding error. I have already set the UTF-8 parameter in the connection string and I did not succeed! Has anyone had the same problem and solved it?
$db['default'] = array(
'dsn' => 'dblib:host=192.168.1.1:1433;dbname=TOESTE;charset=UTF-8',
'hostname' => 'dblib:host=192.168.1.1:1433;dbname=TOESTE;charset=UTF-8',
'port' => '1433',
'username' => 'sa',
'password' => 'xxxxxx',
'database' => 'TOESTE',
'dbdriver' => 'pdo',
'dbprefix' => '',
'pconnect' => FALSE,
'db_debug' => (ENVIRONMENT !== 'production'),
'cache_on' => FALSE,
'cachedir' => '',
'char_set' => 'utf8',
'dbcollat' => 'utf8_general_ci',
'swap_pre' => '',
'encrypt' => FALSE,
'compress' => FALSE,
'stricton' => FALSE,
'failover' => array(),
'save_queries' => TRUE
);