从mysql数据库中检索特殊字符,php [英] retrieving special characters from mysql database, php
本文介绍了从mysql数据库中检索特殊字符,php的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经向mysql数据库中插入了一些数据.设置utf-8 cz.而且看起来还不错.
I've inserted some data to a mysql database. Set up the utf-8 cz. And it looks fine.
但是当我在表中回显一行时,不会显示特殊字符.包括Meta utf-8.
But when I echo a row from the table, special characters are not shown. Meta utf-8 included.
任何想法如何解决?谢谢
Any ideas how to fix it? Thank you
推荐答案
使用
mysql_set_charset('utf8');
在使用PHP执行查询之前
before you execute the query in PHP
这篇关于从mysql数据库中检索特殊字符,php的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文