$gb = new IPGeoBase();
$data = $gb->getRecord($_SERVER['REMOTE_ADDR']);
print_r($data);
//setlocale(LC_ALL, 'ru_RU.UTF-8');
//setlocale(LC_ALL, 'en_US.UTF8');
echo mb_detect_encoding($data['cc']);
//$data['cc'] = iconv('ASCII', 'UTF-8//IGNORE', $data['cc']);
$data['cc'] = mb_convert_encoding($data['cc'], "UTF-8");
echo mb_detect_encoding($data['cc']);
die("startcache");