Re: Output files encoding
| From: | Yannick Warnier | Date: | Mon, 24 Oct 2005 14:16:46 +0000 |
| Subject: | Re: Output files encoding | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-224546@lists.php.net to get a copy of this message | ||
Le lundi 24 octobre 2005 à 14:37 +0100, Yannick Warnier a écrit :
> Hi guys,
>
> For a reason that I don't really understand, my PHP install outputs file
> in UTF-8 by default.
>
> I would like to output files in ISO-8859-1 in certain cases. How do I do
> that?
>
> I have tried changing default_charset to iso-8859-1 with an ini_set()
> call, but it doesn't help. I also looked at the doc for fopen() and
> fwrite() (the functions I am using to write my file) and to the mbstring
> module, but it looks like nothing is really coded to allow me to do
> this.
For some reason now I could write a fully ISO-8859-1 file, so I can
guess I had been missing something. If someone has an explanation or a
document on how the files created by PHP are encoded, I would be very
glad. Thanks.
Yannick