note 91626 modified in function.fwrite by danbrown

From: Date: Fri, 19 Jun 2009 22:49:42 +0000
Subject: note 91626 modified in function.fwrite by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-157151@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: <?php $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) --was-- // 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) http://php.net/manual/en/function.fwrite.php

« previous php.notes (#157151) next »