Name
mysql_client_encoding( )
Synopsis
mysql_client_encoding([connection
])
This returns the name of the default character set for the current
MySQL connection or, if connection
is
supplied, for that connection.
... $info = mysql_client_encoding( ); print "Encoding in Use: $info \n"; ...
Here are the results of this script on my computer:
Encoding in Use: latin1
Get MySQL in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.