Can somebody help me? How can i convert all HTML special chars to UTF-8 Example:
Hello Word! P&H
convert to:
Hello Word! P&H
Use html_entity_decode()
and explicitly specify the charset:
$string = html_entity_decode($string, ENT_QUOTES, "utf-8");
for future reference: PHP string functions
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With