gpt4 book ai didi

php - � 出现在网页上,回显数据库结果

转载 作者:行者123 更新时间:2023-11-29 20:48:17 27 4
gpt4 key购买 nike

所以这个名字里有一个奇怪的笑脸,看起来像“ツ”在数据库中输入为“ã”我已经:

$username = utf8_decode($user);

名称显示为: utf-error

在网站上,笑脸仍然没有显示。

最佳答案

试试这个:header('内容类型:text/html; charset=utf-8');

关于php - � 出现在网页上,回显数据库结果,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38271989/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com