unicode - An error occurred translating the connection string to UTF-16 in PHP SQL server -
i'm using php 5.2.9 , micorsoft sql server 2008 r2 apache, , have php line of code this
<?php $servername = "xxx-xxxxxxxxxxx\xxx" $connection = array("database"=>"example"); $conn = sqlsrv_connect($servername, $connection); if( $conn ) { echo "connection established."; } else { echo "connection not established."; print_r($connection); die( print_r( sqlsrv_errors(), true)); } ?> but shows error this:
connection not established.
array ( [database] => example )
array ( [0] => array ( [0] => imssp [sqlstate] => imssp [1] => -47 [code] => -47 [2] => error occurred translating connection string utf-16: no mapping unicode character exists in target multi-byte code page. [message] => error occurred translating connection string utf-16: no mapping unicode character exists in target multi-byte code page. ) ) any sugestion problem?
Comments
Post a Comment