SQL Server-> PHP与odbc和特殊字符的连接

时间:2018-03-10 11:27:50

标签: php sql-server odbc

我使用带有此字符串的odbc从SQL Server获取重音字符时出现问题 - > " $ connection_string =" DRIVER = {SQL Server}; SERVER = $ server; $ port; DATABASE = $ database;"

bad encoding

1 个答案:

答案 0 :(得分:0)

完成! iconv(“CP1252”,“UTF-8”,$ text);