Home >Database >Mysql Tutorial >php网mysql数据库插入数据乱码问题?

php网mysql数据库插入数据乱码问题?

WBOY
WBOYOriginal
2016-06-06 09:41:10909browse

mysqlphp乱码

我php页面是设置为

<code> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"></code>

数据库的编码也是utf8

Variable_name Value

character_set_client utf8
character_set_connection utf8
character_set_database utf8
character_set_filesystem binary
character_set_results utf8
character_set_server utf8
character_set_system utf8
character_sets_dir D:\mysql\share\charsets\

我在地址栏输入
http://zjnetwork.gotoip1.com/library/shz_library.php?action=3&searchzd=文件
将“文件”写入到数据库,结果查看数据库是“%E6%96%87%E4%BB%B6”
请问怎么解决,让在数据库中显示也是“文件”

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