How to convert all my site from iso-8859-1 to UTF-8?

Discussion in 'HTML & Website Design' started by luizeba, Nov 11, 2009.

  1. #1
    Hello mates...


    I'm converting all my sites from differents characters-types to UTF-8, to be able to manage all the sites under the same script...


    But well my main problem is with my site who use ISO-8859-1...it's a portuguese one...


    It has too much content to I re-add everything again...



    Is there a easy way, with PHP, MySQL or something like that, to convert all my site from ISO-8859-1 to UTF-8? Then I just change the "Character-Type" meta-tag, and everything is done...

    Thanks guys!
     
    luizeba, Nov 11, 2009 IP
  2. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #2
    I'm pretty sure utf-8 is backwardly compatible with iso-8859-1, so you probably only need to set the charset to utf-8.
     
    digitalpoint, Nov 11, 2009 IP
  3. theapparatus

    theapparatus Peon

    Messages:
    2,925
    Likes Received:
    119
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Are these sites driven by data from a MySQL database? If so, what charset are those databases?
     
    theapparatus, Nov 11, 2009 IP
  4. luizeba

    luizeba Active Member

    Messages:
    265
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #4
    Hello DP (whoa! DP owner on my thread! printscreen plaseee!)

    When I set to UTF-8, my site still fully of missing characters, like ñ in Spanish, á é ó in PT, ê in French, ß in German...


    And yes, theapparatus, all the site is in MySQL...
    What I need do to see the charset of the databases? never did it, sorry >.<
     
    luizeba, Nov 12, 2009 IP
  5. theapparatus

    theapparatus Peon

    Messages:
    2,925
    Likes Received:
    119
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Depends on your host actually. Many sites give you a problem like phpmyadmin to access your databases. What are you using for a hosting platform?
     
    theapparatus, Nov 12, 2009 IP