Re: Stripping accents from characters as they pass through a stream and then written to file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux