I have an php script which calls another web page and writes all the html of the page and everything goes ok however there is a charset problem. My php file encoding is utf-8 and all other php files work ok (that means there is no problem with server). What is the missing thing in that code and all spanish letters look weird. PS. When I wrote these weird characters original versions into php, they all look accurate.
header("Content-Type: text/html; charset=utf-8");
When you use curl it encodes the string to
utf-8 you just need to decode them..
Description string utf8_decode ( string $data )
This function decodes data , assumed to be
UTF-8 encoded, to