J'utilise une base de données externe MySQL pour géré mes comptes étudiants.
J'importe dans Phpmyadmin mes comptes grâce à un fichier cvs sauvegardé en UTF-8. L'importation dans ma base (en utf8) fonctionne très bien.
Si je me log pour la première fois avec un compte sans accent, tout se passe normalement. Mais si le comptes comporte un 'é' ou autres dans ses informations, j'ai cette erreur :
Incorrect string value: '\xE9s' for column 'department' at row 1
INSERT INTO mdl_user ( AUTH, CONFIRMED, MNETHOSTID, USERNAME, FIRSTNAME, LASTNAME, EMAIL, DEPARTMENT, LANG, LASTIP, DESCRIPTION, TIMEMODIFIED ) VALUES ( 'db', 1, 1, 'heff1ati1', 'heff1ati', '1', 'heff1ati1@changer.be', 'Arts appliqu�s', 'fr_utf8', '10.31.122.177', 'Arts du tissu', 1213870775 )
INSERT INTO mdl_user ( AUTH, CONFIRMED, MNETHOSTID, USERNAME, FIRSTNAME, LASTNAME, EMAIL, DEPARTMENT, LANG, LASTIP, DESCRIPTION, TIMEMODIFIED ) VALUES ( 'db', 1, 1, 'heff1ati1', 'heff1ati', '1', 'heff1ati1@changer.be', 'Arts appliqu�s', 'fr_utf8', '10.31.122.177', 'Arts du tissu', 1213870775 )
- line 1554 of lib\dmllib.php: call to debugging()
- line 2870 of lib\moodlelib.php: call to insert_record()
- line 3081 of lib\moodlelib.php: call to create_user_record()
- line 128 of login\index.php: call to authenticate_user_login()
Notice: Trying to get property of non-object in D:\www_moodle\icampus\lib\moodlelib.php on line 3102
Pourtant je suis bien en utf8 partout... et si le problème ne vient pas du format de codage, je vois pas trop où il serait.
Edit : si je crée un compte manuellement dans mySQL comportant des 'é', ça fonctionne... c'est donc mon importation qui semble causer problème...
Auriez-vous des pistes à me proposer ?
D'avance un grand merci.