Re: encoding to a file

From: Date: Sun, 18 May 2008 14:30:42 +0000
Subject: Re: encoding to a file
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-274486@lists.php.net to get a copy of this message
This should work as expected. <?php $f = fopen("file.txt", "r"); stream_encoding($f, "iso-8859-1"); ?> 2008/5/16 J. Manuel Velasco - UBILIBET <tech@ubilibet.com>: > Hello. > > When I create a file I need to specify the encoding to ISO-8859-1, how can i > do this please ? > > I have read about stream:default:encoding() but I am not sure how to use it. > > Thanks in advance. > -- >

« previous php.general (#274486) next »