php-general Digest 17 Jan 2013 16:20:59 -0000 Issue 8098
Topics (messages 320088 through 320090):
Re: Stripping accents from characters as they pass through a stream and then
written to file
320088 by: Marc Guay
320089 by: Marc Guay
PHP 5.4.11 and PHP 5.3.21 released!
320090 by: Johannes Schlüter
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscr...@lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscr...@lists.php.net
To post to the list, e-mail:
php-gene...@lists.php.net
----------------------------------------------------------------------
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
And the answer is that it's a locale issue...
http://stackoverflow.com/questions/7931853/why-does-phps-iconv-need-setlocale
--- End Message ---
--- Begin Message ---
The PHP development team announces the immediate availability of PHP
5.4.11 and PHP 5.3.21. These releases fix about 10 bugs. All users of
PHP are encouraged to upgrade to PHP 5.4. PHP 5.3.20 is recommended
for those wishing to remain on the 5.3 series.
The full list of changes are recorded in the ChangeLog on
http://www.php.net/ChangeLog-5.php
For source downloads of PHP 5.4.11 and PHP 5.3.21 please visit our
downloads page at http://www.php.net/downloads.php
Windows binaries can be found on http://windows.php.net/download/
Stanislav Malyshev Johannes Schlüter
PHP 5.4 Release Master PHP 5.3 Release Master
--- End Message ---