note 91626 added to function.fwrite
| From: | hajo at clansphere dot de | Date: | Fri, 19 Jun 2009 22:46:19 +0000 |
| Subject: | note 91626 added to function.fwrite | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-157150@lists.php.net to get a copy of this message | ||
// with php 5.2+ you can (should!) use the following line next to e.g. fopen() and specify the
encoding of the content:
$charset = 'UTF-8';
stream_encoding($handle, $charset);
in addition php 6 seems to need this since it triggers a notice level error if special chars must be
converted and the above command is not specified (binary data excluded - just talkin bout clear text
in this comment)
----
Server IP: 212.124.37.9
Probable Submitter: 85.176.150.103
----
Manual Page -- http://www.php.net/manual/en/function.fwrite.php
Edit -- https://master.php.net/note/edit/91626
Del: integrated -- https://master.php.net/note/delete/91626/integrated
Del: useless -- https://master.php.net/note/delete/91626/useless
Del: bad code -- https://master.php.net/note/delete/91626/bad+code
Del: spam -- https://master.php.net/note/delete/91626/spam
Del: non-english -- https://master.php.net/note/delete/91626/non-english
Del: in docs -- https://master.php.net/note/delete/91626/in+docs
Del: other reasons-- https://master.php.net/note/delete/91626
Reject -- https://master.php.net/note/reject/91626
Search -- https://master.php.net/manage/user-notes.php