From 2ac5efcd572c66861420be26ca83b5af30ba038c Mon Sep 17 00:00:00 2001 From: Nick Berard Date: Sat, 18 Aug 2007 18:18:02 +0000 Subject: [PATCH] Default encoding can also be changed with stream_default_encoding git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@241525 c90b9560-bf6c-de11-be94-00142212c4b1 --- .../filesystem/functions/file-put-contents.xml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/reference/filesystem/functions/file-put-contents.xml b/reference/filesystem/functions/file-put-contents.xml index 3af8146db6..41fabfcba0 100644 --- a/reference/filesystem/functions/file-put-contents.xml +++ b/reference/filesystem/functions/file-put-contents.xml @@ -1,5 +1,5 @@ - + file_put_contents @@ -111,12 +111,12 @@ data is written in text mode. If unicode - semantics are enabled, the default encoding is UTF-8. - You can specify a different encoding by creating a custom context. - This flag cannot be used with FILE_BINARY. - If data is UTF-8 and the - FILE_TEXT flag is not set, a warning will be - issued. This flag is only available since PHP 6. + semantics are enabled, the default encoding is UTF-8. + You can specify a different encoding by creating a custom context + or by using the stream_default_encoding to + change the dafault. This flag cannot be used with + FILE_BINARY. This flag is only available since + PHP 6.