I have tried:
$txtfile = iconv("UTF-8", "WINDOWS-1252", $txtfile);
The file is created by php, with file_put_contents