htmlspecialchars返回错误值
我正在使用php 7.4,当我运行echo htmlspecialchars(“ joursfériés”,ent_quotes);
我得到一个空字符串。 当我运行回声时,HTMLSpeceialChars(“ jours”,ent_quotes)
;我得到了“ jours” 如何解决此问题?
I'm using PHP 7.4, when I run echo htmlspecialchars("Jours Fériés", ENT_QUOTES);
I get an empty string.
when I run echo htmlspecialchars("Jours", ENT_QUOTES)
; I get "Jours"
How can fix this problem ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
通过将编码更改为“ ISO-8859-1”内部php.ini中的求解
Solved by changing encoding to "iso-8859-1" inside php.ini