Answers for "php file_get_contents html with special characters"

PHP
0

php file_get_contents html with special characters

$source = 'url of page with text with special characters';
$html = file_get_contents($source,0);
$html = mb_convert_encoding($html, 'UTF-8', mb_detect_encoding($html, 'UTF-8, ISO-8859-1', true));
Posted by: Guest on August-24-2021

Code answers related to "php file_get_contents html with special characters"

Browse Popular Code Answers by Language