When using php to link to sqlserver, the data queried, the encoding is unstable, utf8 for a while, and a question mark for a while. Very confused. The following method can solve this problem. The premise is the dblib extension.
If the result found is garbled, the change /usr/local/freetds/etc/freetds.conf
will add an entry to global
- client charset = UTF8
Remember to restart after modification.
{{o.name}}
{{m.name}}