search

Home  >  Q&A  >  body text

Please tell me about the problem of garbled characters when using PDO to connect to MSSQL database and insert it?

PHP is utf8 encoding

MSSQL database is gb2312 encoding

Using PDO to connect to MSSQL to insert records containing Chinese will cause garbled characters!

How to solve it?

FёηgFёηg1228 days ago1180

reply all(1)I'll reply

  • 猪老湿

    猪老湿2021-07-19 13:37:39

    Unify the coding

    reply
    0
  • Cancelreply