$charset = mysql_client_encoding($link);
echo "The current character set is: $charset\n";
===== Définir le jeu de caractère du client =====
mysql_set_charset('latin1', $link);
===== Références =====
* https://www.php.net/manual/en/function.mysql-client-encoding.php
* https://www.php.net/manual/en/function.mysql-set-charset.php