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

前端 未结 13 1175
借酒劲吻你
借酒劲吻你 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 06:59

    For me editing this file:
    /etc/freetds/freetds.conf
    ...and changing/setting 'tds version' parameter to '7.0' helped. Edit your freetds.conf and try to change this parameter for your server configuration (or global).

    It will work even without apache restart.

提交回复
热议问题