PHP 5.2.9 と Micorsoft SQL Server 2008 R2 を Apache で使用しており、このような PHP コード行があります。
<?php $serverName = "xxx-xxxxxxxxxxx\xxx" $connection = array("データベース"=>"例"); $conn = sqlsrv_connect($serverName, $connection); if( $conn ) { echo "接続が確立されました。"; } そうしないと { echo "接続を確立できませんでした。"; print_r($接続); die( print_r( sqlsrv_errors(), true)); } ?>
しかし、次のようなエラーが表示されます。
Connection could not be established.
Array ( [Database] => example )
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. ) )
私の問題に対する提案はありますか?