gpt4 book ai didi

PHP:从mysql db转换utf8字符

转载 作者:行者123 更新时间:2023-11-29 02:07:13 25 4
gpt4 key购买 nike

我的数据库中有一个长文本,其中有一些特殊字符,例如 Ã

如何将它转换为“à”?我试过使用 utf8_encode 和 _decode 但它似乎不起作用。文档字符集是utf8,也是长文本字段。

最佳答案

这不是关于编码而是 html 实体:http://php.net/manual/fr/function.html-entity-decode.php

关于PHP:从mysql db转换utf8字符,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3918445/

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