<?php $db = mysql_query("SHOW VARIABLES LIKE 'character_set_%';"); $db = mysql_fetch_assoc($db); print_r($db); ?>