Luciano
Luciano

Reputation: 1455

PHP: Converting utf8 chars from mysql db

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 not work. Document charset is utf8, and longtext field too.

Upvotes: 2

Views: 445

Answers (1)

MatTheCat
MatTheCat

Reputation: 18761

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

Upvotes: 3

Related Questions