Jump to content

Strange file_get_contents output? à la Libération


mahmood

Recommended Posts

I am trying to read a XML file which contains some french characters for example:

<Title>La France virile: Des femmes tondues à la Libération</Title>

 

The following script is used to read out the file:

$contents = file_get_contents($file);echo $contents;

 

The problem is that à la Libération changes to tondues à la Libération

How can I get correct these strange characters?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.