gpt4 book ai didi

php - 在 PHP 中从 MySql 正确查询引号

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

在我的 MySql 中,我像这样存储数据

....they try to provide time off to employees for volunteering, since they've experienced   such a huge growth period and "never got out of start-up mode," ....

但是一旦我查询它并在 PHP 中回显,它就会出现

they try to provide time off to employees for volunteering, since they�ve experienced such a huge growth period and �never got out of start-up mode,� 

是否必须将数据库中数据中的所有双引号和单引号替换为 "

最佳答案

将行排序规则更改为 UTF-8。

关于php - 在 PHP 中从 MySql 正确查询引号,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13132147/

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