mysql_client_encoding()
string mysql_client_encoding([connection])This function returns the name of the default character set
for the current MySQL connection or, if
connection is supplied, for that
connection. Here is an example:
... $info = mysql_client_encoding( ); print "Encoding in Use: $info \n"; ...
Here are the results of this script on my server:
Encoding in Use: latin1