How to determine character encoding of a file?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Thomas Podlesak

    How to determine character encoding of a file?

    I need a function to determine if a file is utf-8 encoded. I found the
    inconv- and recode-functions. But they only seem to convert files. Isn´t
    there any php-function similar to the 'file'-command on linux?
Working...