Re: file type and recode

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

 



On 8/29/06, Martin Marques <martin@xxxxxxxxxxxxxxx> wrote:
Simple question:

Is there a built-in function in PHP to get the charset of a file, so that
I can pass the right parameters to recode_file()?

It depends.

If it is a .txt file (nope)
a .doc file (mabey, pending the .doc format)
a .xml file (most likely, unless it is a poorly formatted xml file)

It all depends how the document is stored and if it keeps the charset
within the document.

Curt.

--
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