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

前端 未结 13 1234
借酒劲吻你
借酒劲吻你 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

    Can't you just convert your tables to your application encoding? Or use utf-8 in both?

    I don't know whether MSSQL supports table-level encodings, though.

    Also, try the MB (multibyte) string functions, if the above fails.

提交回复
热议问题