Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

mysql encoding issues

  • 08-08-2007 04:51PM
    #1
    Registered Users, Registered Users 2 Posts: 252 ✭✭


    Hi

    I have a php mysql site working perfectly on one server

    i transfered over the site to another server - i changed nothing - and all the foreign characters are messed up - here is what i get
    Nouveau programme Beta lancé pour l'année 2006
    
    instead of
    Nouveau programme Beta lancé pour l'année 2006
    

    tnx
    sean


Comments

  • Registered Users, Registered Users 2 Posts: 3,594 ✭✭✭forbairt


    How did you go about transferring the mysql database ? are they both running the same versions ?


  • Registered Users, Registered Users 2 Posts: 68,173 ✭✭✭✭seamus


    You can check the collation/character set on the tables first off:
    show table status from db_name

    The "Collation" column will tell you what's being used.

    Try resetting the collation on the database;
    ALTER DATABASE db_name CHARACTER SET latin1 COLLATE latin1_general_ci;

    This sets it to ISO 8859-2 (Western European Standard).


Advertisement
Advertisement