Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

mysql encoding issue - arrrgh

  • 23-08-2011 9:55am
    #1
    Registered Users, Registered Users 2 Posts: 648 ✭✭✭


    Hi there,

    im trying to save french characters into a mysql database via php.

    for example Rhône-Alpes becomes Rhône-Alpes

    This is my create table script - everything is utf8 so what is wrong ? Thanks alot !

    
    CREATE TABLE `inscriptions_copy` (
      `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
      `nom` varchar(30) CHARACTER SET utf8 DEFAULT NULL,
      `prenom` varchar(30) CHARACTER SET utf8 DEFAULT NULL,
      `pro` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
      `sexe` varchar(1) CHARACTER SET latin1 NOT NULL DEFAULT 'M',
      `dob` date NOT NULL,
      `addy` varchar(200) CHARACTER SET utf8 NOT NULL DEFAULT '',
      `cp` int(5) NOT NULL,
      `ville` varchar(50) CHARACTER SET utf8 NOT NULL DEFAULT '',
      `email` varchar(50) CHARACTER SET utf8 NOT NULL DEFAULT '',
      `telp` varchar(15) CHARACTER SET utf8 NOT NULL DEFAULT '',
      `message` text CHARACTER SET utf8 NOT NULL,
      `ip` varchar(50) CHARACTER SET utf8 DEFAULT NULL,
      `added` datetime NOT NULL,
      `already` tinyint(1) NOT NULL DEFAULT '0',
      `dispo` varchar(20) CHARACTER SET latin1 NOT NULL DEFAULT '',
      `cand` varchar(50) CHARACTER SET utf8 NOT NULL DEFAULT '',
      PRIMARY KEY (`id`)
    ) ENGINE=MyISAM AUTO_INCREMENT=26 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
    
    
    Tagged:


Comments

  • Registered Users, Registered Users 2 Posts: 3,766 ✭✭✭Reku


    At a guess the problem is that your PHP engine is using a different charset and so the values get screwed up on entry to the tables, I've had this problem before myself and had to change the PHP settings to fix it.


Advertisement