Salut!

On Fri, Jul 03, 2009 at 10:46:18PM +0200, Yann Cochard wrote:
> La commande file permet de déterminer le type d'un fichier, et donne 
> parfois son encodage.
> Exemples :
>       $ file fichier*
>       fichier1: UTF-8 Unicode text
>       fichier2: ISO-8859 text
> 
> Le problème, c'est avec les fichiers PHP, j'obtiens :
>       test.php: PHP script text
file -i <fichier>

rom...@marvin /tmp % file -i i.php u.php
i.php: text/plain charset=iso-8859-1
u.php: text/plain charset=utf-8

-- 
Romain Tartière <[email protected]>        http://romain.blogreen.org/
pgp: 8DAB A124 0DA4 7024 F82A  E748 D8E9 A33F FF56 FF43 (ID: 0xFF56FF43)
(plain text =non-HTML= PGP/GPG encrypted/signed e-mail much appreciated)

Attachment: pgpkiciaWUBWC.pgp
Description: PGP signature

Répondre à