I finally did it with ADODB.
There you can change the Codepage for the connection:
$dsn = "DRIVER={SQL Server};SERVER=$dbhostname;DATABASE=$dbname;UID=$dbuser;PWD=$dbpassword";
$conn = new COM("ADODB.Connection",NULL,CP_UTF8) or die("Cannot start ADO");
Thank you,jpadie, for your help,
Kai
Ich have a MSSQL table with a NVARCHAR field. There are values from different languages:
I just want to see these values in my browser.
I chose UTF-8 as charste:<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
I tried direct access by php:
$msconnect =...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.