If I try and simplify this by skipping the stream business and just write to file directly from main.php, I have the same problem. $fd = fopen('log.txt', "a"); $val = iconv('UTF-8','ASCII//TRANSLIT',"é"); fwrite($fd, $val); = ? in an ANSI encoded file. If it helps anyone to understand this I'm following advice found here: http://stackoverflow.com/questions/3371697/replacing-accented-characters-php. Marc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php