mysql_client_encoding() returns the default character set name for the current connection.
<?php
$link = mysql_connect('localhost', 'mysql_user', 'mysql_password');
$charset = mysql_client_encoding($link);
printf ("current character set is %s\n", $charset);
?>The above example would produce the following output:
current character set is latin1See also mysql_real_escape_string()
| This HTML Help has been published using the chm2web software. |