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

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

node.js - Bad Request - node js ajax post -

uitableview - Create and use custom prototype table cells in xamarin ios using storyboard -