0

When I get content by file_get_contents from url: http://www.frequenceoptic.fr/actualites/serengeti-glamattitude.html

I got string in php "Jeudi, 26 Août 2010 13:26". Characters in month is incorrect.

On html page specified:

My system windows 7. Php.ini output: http://pastebin.com/HJvinbtm

korvinko
  • 700
  • 3
  • 10
  • 23

1 Answers1

0

You've got a UTF-8 encoded string, which would decode to Jeudi, 26 Août 2010 13:26

Make sure your page also indicates it uses UTF-8 - see <meta charset="utf-8"> vs <meta http-equiv="Content-Type"> for some techniques. Alternatively, you can decode to ISO-8859-1 with utf8_decode(), but really, you should get comfortable with using UTF-8 these days :)

Community
  • 1
  • 1
Paul Dixon
  • 295,876
  • 54
  • 310
  • 348