If you are getting ’ instead of an apostrophe(') or other junk characters instead of any character, here is the solution for it.
PHP has function:
It converts string's encoding type to desired type.
If you're getting content from file and printing on site, use below function.
PHP has function:
mb_convert_encodingIt converts string's encoding type to desired type.
If you're getting content from file and printing on site, use below function.
echo mb_convert_encoding(
file_get_contents('http://www.example.com/xyz.php?show=Surviver&ep=20x02&exact=0'),
"HTML-ENTITIES",
"UTF-8"
);
No comments:
Post a Comment