PHP + SQL Server - How to set charset for connection?

前端 未结 13 1176
借酒劲吻你
借酒劲吻你 2020-12-01 06:54

I\'m trying to store some data in a SQL Server database through php.

Problem is that special chars aren\'t converted properly. My app\'s charset is iso-8859-1 and th

13条回答
  •  死守一世寂寞
    2020-12-01 07:13

    I had the same problem and ini_set('mssql.charset', 'utf-8') did not work for me. However, it worked in uppercase:

    ini_set('mssql.charset', 'UTF-8');
    

提交回复
热议问题