SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Nov 2012
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to properly add French text on php file for my Wordpress site?

    Hi guys,
    I am having a problem with putting French text on one of my php file for my Wordpress site. The special texts appears to be a special character. If the text is on a normal html file it looks okay!

    For example, the text should be:
    Avantage : Bénéficiez d’un tarif exclusif de 12.38 €/ heure et

    But when uploaded it appears like this:
    Avantage : B�n�ficiez d�un tarif exclusif de 12.38 €/ heure


    Please help!

  2. #2
    Community Advisor silver trophybronze trophy
    dresden_phoenix's Avatar
    Join Date
    Jun 2008
    Location
    Madison, WI
    Posts
    2,819
    Mentioned
    34 Post(s)
    Tagged
    2 Thread(s)
    Make sure you have the correct charset metatag. <meta http-equiv="content-type" content="text/html;charset=iso-8859-1">, should do it. but that's off the top of my head.

  3. #3
    SitePoint Addict kduv's Avatar
    Join Date
    May 2012
    Location
    Atlanta, GA
    Posts
    244
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    You want UTF-8 for your encoding. Set it in your HTML, set it in PHP using the header() function, and make sure your code editor is using UTF-8.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •