hello
i have a working code :
if ($fp = @fopen($url, "r")) {
while (!feof($fp)) {
$data .= fgets($fp, 128);
}
fclose($fp);
}
but i want to convert $data to unicode, i try this code but seems not working . what is the problem?
if ($fp = @fopen($url, "r")) {
while (!feof($fp)) {
$data .= fgets($fp, 128);
}
fclose($fp);
}
$data = utf8_encode($data) //tried .= also
thanks in advance