What?
A quick article showing my MySQL statement when I want to remove all the accents from foreign characters and return the English equivalent.
Why?
A content management system (CMS) that I'm ...
... "UTF-8". So if you get null from htmlspecialchars or htmlentities..." Source: PHP Manual
My fix (in some cases):
$my_description = html_entity_decode(htmlentities($my_description, ENT_COMPAT, 'ISO-8859-1', ...
We use cookies to improve your experience on our website. By browsing this website, you agree to our use of cookies. Read more about our Privacy Policy.