Home >Backend Development >PHP Problem >phpsql Chinese garbled code

phpsql Chinese garbled code

藏色散人
藏色散人Original
2019-10-18 10:44:162530browse

phpsql Chinese garbled code

php sql Chinese garbled code?

PHP link sqlserver appears Chinese garbled code

PHP connects to sqlserver through dblib extension, using freetds, and Chinese garbled characters appear.

In the freetds configuration file (/usr/local/freetds/etc/freetds.conf), [global] add the following line

client charset = UTF8

Restart after modification, I am the entire PHP environment All restart.

For more PHP related knowledge, please visit PHP Chinese website!

The above is the detailed content of phpsql Chinese garbled code. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:php gets website icoNext article:php gets website ico