24 lines
585 B
Markdown
24 lines
585 B
Markdown
|
|
Gestion de l'UTF-8 entre MySQL et PHP
|
|
=====================================
|
|
|
|
http://www.phptherightway.com/#the_basics
|
|
https://mathiasbynens.be/notes/mysql-utf8mb4
|
|
Paramètres PHP - mb_internal_encoding('UTF-8'); - mb_http_output('UTF-8');
|
|
Utiliser mb_*
|
|
|
|
SET NAMES utf8mb4 COLLATE utf8mb4_unicode_ci
|
|
|
|
MySQL => Ultime, une fois tout switcher sur les applications, backup and restore
|
|
|
|
[client]
|
|
default-character-set = utf8mb4
|
|
|
|
[mysql]
|
|
default-character-set = utf8mb4
|
|
|
|
[mysqld]
|
|
character-set-client-handshake = FALSE
|
|
character-set-server = utf8mb4
|
|
collation-server = utf8mb4_unicode_ci
|