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
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