Home >Database >Mysql Tutorial >xampp本地mysql环境phpmyadmin中文正常但是程序读取时中文问号的_MySQL

xampp本地mysql环境phpmyadmin中文正常但是程序读取时中文问号的_MySQL

WBOY
WBOYOriginal
2016-06-01 13:11:101218browse

XAMPP

先看下

SHOW VARIABLES LIKE 'CHARACTER_SET_%'

发现有latin1, 于是打开my.ini

## UTF 8 Settingsinit-connect=/'SET NAMES utf8/'collation_server=utf8_unicode_cicharacter_set_server=utf8#skip-character-set-client-handshake#character_sets-dir="/xampp/mysql/share/charsets"

EOF


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