开发者

PHP: Converting utf8 chars from mysql db

开发者 https://www.devze.com 2023-01-19 22:12 出处:网络
I have a longtext in my db where i have some special chars like à How i can convert it to \"à\"? I\'ve tried using utf8_encode and _decode but it seems 开发者_JS百科not work.

I have a longtext in my db where i have some special chars like Ã

How i can convert it to "à"? I've tried using utf8_encode and _decode but it seems 开发者_JS百科not work. Document charset is utf8, and longtext field too.


It's not about encoding but html entities : http://php.net/manual/fr/function.html-entity-decode.php

0

精彩评论

暂无评论...
验证码 换一张
取 消