Re: encoding to a file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxx>:
> 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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux