Find out encoding of a file with php, and convert it to UTF-8 encoding

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Matthias Langbein

    Find out encoding of a file with php, and convert it to UTF-8 encoding

    Hi all,

    in my script I need to find out the encoding of a file and in case it
    is not of the kind UTF-8 I need to convert it to that format.

    Any hints??

    Thanks
  • Benjamin Esham

    #2
    Re: Find out encoding of a file with php, and convert it to UTF-8 encoding

    Matthias Langbein wrote:
    in my script I need to find out the encoding of a file and in case it is
    not of the kind UTF-8 I need to convert it to that format.
    Something in http://www.php.net/manual/en/ref.iconv.php should be able to
    help you.

    HTH,
    --
    Benjamin D. Esham
    bdesham@gmail.c om | AIM: bdesham128 | Jabber: same as e-mail
    "Come to think of it, there are already a million monkeys on a
    million typewriters, and Usenet is NOTHING like Shakespeare!"
    — Blair Houghton

    Comment

    Working...