Replaced deprecated mysqli_client_encoding with mysqli_character_set_name to restore check.php compatibility with PHP 5.4

git-svn-id: http://svn.montala.net/svn/resourcespace@4610 c08608d7-6e46-0410-86ca-f2a6f1370df5