Changer l'interclassement connexion serveur
... / Changer l'interclassement...
BMPCreated with Sketch.BMPZIPCreated with Sketch.ZIPXLSCreated with Sketch.XLSTXTCreated with Sketch.TXTPPTCreated with Sketch.PPTPNGCreated with Sketch.PNGPDFCreated with Sketch.PDFJPGCreated with Sketch.JPGGIFCreated with Sketch.GIFDOCCreated with Sketch.DOC Error Created with Sketch.
question

Changer l'interclassement connexion serveur

Par
JohnnyB
Créé le 2022-11-17 11:07:06 (edited on 2024-09-04 11:52:37) dans Databases-old

Bonjour, lorsque les données de ma table 'agenda' de la BDD s'affichent sur ma page web "agenda" du site gigsenpoche.org les accents et caractères spéciaux (€) sont remplacés par des "?". Les interclassements de ma BDD et ma table sont "utf8_general_ci", j'ai modifié le fichier "config.php" : "('DB_CHARSET', 'utf8')" et "('DB_COLLATE', 'utf8_general_ci')". Par contre l'Interclassement pour la connexion au serveur est au format : "utf8mb4_unicode_ci". Le problème ne viendrait-il pas de là ? Et donc comment puis-je modifier l'interclassement de la connexion au serveur ?
Merci


1 réponse ( Latest reply on 2022-11-17 11:54:32 Par
fritz2cat officiel (d'avant la migration)
)


Par contre l'Interclassement pour la connexion au serveur est au format : "utf8mb4_unicode_ci"


Voici ce qui arrive en données brutes: (fragment)
Les E9, E2, 80 représentent des caractères 8-bit ANSI et pas du tout UTF-8
E9 = é
E2 = â
80 (le symbole € n'est pas représentable en ANSI)


45000 Orlans8,00<80>45 TOURS DE POITRINE2022-11-26LOIR-ET-CHER (41)JESSICA MOSS (N
o-classique Minimaliste de Montral – Canada) + BORGUEFUL (Solo contrebasse/voix de Tours) – 19H00La Fabrique du Docteur Faton

41100 VendmePrix LibreFIGURES LIBRES et LA FABRIQUE DU DOCTEUR FATON2022-11-16INDRE-ET-LOIRE (37)FIRST DRAFT (Post Rock de Tours) + OHM (Fuzzy Power Trio de Nantes) + MIDDLE CHILD (Indie Pop/Folk de Nantes) – 19H30Le Bteau Ivre

37000 Tours8,00<80> / 10,00<80>LYL

ou en image


Cependant votre page dit :




http://gmpg.org/xfn/11"/>
https://www.gigsenpoche.org/xmlrpc.php"/>



AGENDA - %


Vous y verrez UTF-8 mais aussi des caractères accentués correctement affichés (ils sont en UTF-8)

0001100 c o n t e n t = " A g e n d a
0001120 d e s m u s i q u e s a m p
0001140 l i f i 303 251 e s e n r 303 251 g
0001160 i o n C e n t r e V a l d

Plus loin:

0241560 d > L e B 342 t e a u I v r e
0241600 < B R > \r \n 3 7 0 0 0 T o u
0241620 r s < / t d > < t d > 8 , 0 0 200
0241640 / 1 0 , 0 0 200 < / t d > < t

Attention, 342 et 200 c'est de l'octal, ça correspond bien à E2 et 80 en hexa.

Quand vous regardez le contenu des champs avec phpmyadmin, est-ce que ces champs sont affichés correctement ? Car il se pourrait qu'ils soient mal encodés dans la DB au départ ...