I\'m trying to store some data in a SQL Server database through php.
Problem is that special chars aren\'t converted properly. My app\'s charset is iso-8859-1 and th
In my case, It worked after I added the "CharacterSet" parameters into sqlsrv_connect()
connection's option.
$connectionInfo = array(
"Database"=>$DBNAME,
"ConnectionPooling"=>0,
"CharacterSet"=>"UTF-8"
);
$LAST_CONNECTION = sqlsrv_connect($DBSERVER, $connectionInfo);
See documentation here : https://docs.microsoft.com/en-us/sql/connect/php/connection-options?view=sql-server-2017