title: An error occurred translating the connection string to UTF-16 in PHP SQL server
body: <p>I'm using PHP 5.2.9 and Micorsoft SQL Server 2008 R2 with Apache, and have a PHP line of code like this</p>
  
  <pre>
  &lt;?php
  $serverName = "xxx-xxxxxxxxxxx\xxx"
  $connection = array("Database"=>"example");
  $conn = sqlsrv_connect($serverName, $connection);
  
  if( $conn )
  {
       echo "Connection established.";
  }
  else
  {
       echo "Connection could not be established.";
           print_r($connection);
       die( print_r( sqlsrv_errors(), true));
  }
  ?&gt;
  </pre>
  
  <p>but it shows error like this:</p>
  
  <blockquote><code>
  Connection could not be established.<br />
  <br />
  Array ( [Database] => example )<br />
  <br />
  Array ( [0] => Array ( [0] => IMSSP [SQLSTATE] => IMSSP [1] => -47 [code] => -47 [2] => An error occurred translating the connection string to UTF-16: No mapping for the Unicode character exists in the target multi-byte code page. [message] => An error occurred translating the connection string to UTF-16: No mapping for the Unicode character exists in the target multi-byte code page. ) )
  </code></blockquote>
  
  <p>Any sugestion for my problem?</p>