$charset = mysql_client_encoding($link); echo "The current character set is: $charset\n";
mysql_set_charset('latin1', $link);