Aşağıdaki kod ile Trabzonspor sitesinden puan durumunu çekiyorum ancak sayfamın kodlaması UTF-8 çektiğim sitede kodlama windows-1254 olduğundan dolayı sayfamda türkçe karakter hatası alıyorum. Çözümü hakkında bilgisi olan?
Alıntı
<?php
$data = file_get_contents('http://www.trabzonspor.org.tr/default.asp');
$standings = preg_match('~<td width="100%" background="images\/theme\/ts_88.gif" height="153" valign="top">(.+?)<\/marquee>~sm', $data, $match) ? str_replace('color:white', '', $match[1]) . '</marquee>' : 'Puan Durumu Alınamadı';
echo $standings;
?>