This should work as expected.
<?php
$f = fopen("file.txt", "r");
stream_encoding($f, "iso-8859-1");
?>2008/5/16 J. Manuel Velasco - UBILIBET <[EMAIL PROTECTED]>: > 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. > -- > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

