"à la Libération" to "à la Libération"???

Discussion in 'PHP' started by mahmood, Oct 30, 2007.

  1. #1
    I have an XML file which contains some foreign characters for example:
    I read it using the following script:
    $contents = file_get_contents($file);
    echo $contents;
    
    PHP:
    Now I get strange results for french characters for example "tondues à la Libération" changes to "tondues à la Libération".

    Where these strange signs come from and how can I get rid of them?
     
    mahmood, Oct 30, 2007 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    Set the charset of your HTML page to UTF-8.
     
    nico_swd, Oct 30, 2007 IP