Home >Backend Development >PHP Tutorial >怎么让 “&20309;&32654;&23159”在数据库里存成他们的汉字

怎么让 “&20309;&32654;&23159”在数据库里存成他们的汉字

WBOY
WBOYOriginal
2016-06-13 10:17:30892browse

如何让 “何美婷”在数据库里存成他们的汉字
如何让 “何美婷”在数据库里存成他们的汉字

------解决方案--------------------
http://topic.csdn.net/u/20120406/20/e60e3123-3b85-4cd0-aedf-79f1a4a15b1d.html
------解决方案--------------------
$s = '何美婷';
echo $s = mb_convert_encoding($s, 'utf-8', 'HTML-ENTITIES'); 


何美婷
是 gbk 编码的 何美婷 的 HTML 实体

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