I have been trying to print some characters on my php page and it returns something else, like corrupted characters
"joão", ø, ç, etc
header('Content-Type: text/html, charset=utf-8');
You have a typo in your Content-Type header. It's
...; charset=... with a semicolon.