include_once 'a.charset.php'; $text = charset_x_win($text);//из любой кодировки в win. // потом в какую хочешь уже