note 70542 deleted from function.mysql-client-encoding by bjori

From: Date: Fri, 20 Oct 2006 10:11:48 +0000
Subject: note 70542 deleted from function.mysql-client-encoding by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-118823@lists.php.net to get a copy of this message
Note Submitter: dsgiil at hotmail dot com ---- as i test the below code. i found mysql_client_encoding can't get the correct client encoding. <?php $link = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD); mysql_select_db(DB_NAME,$link); if(!mysql_query("SET NAMES 'BIG5'",$link)) echo "Error"; $result = mysql_query('SHOW VARIABLES',$link); while ($row = mysql_fetch_assoc($result)) { echo $row['Variable_name'] . ' = ' . $row['Value'] . "\n<BR>"; } printf ("Current character set is %s\n", mysql_client_encoding($link)); ?> version_comment = FreeBSD port: mysql-server-5.0.24a version_compile_machine = i386 version_compile_os = portbld-freebsd6.2

« previous php.notes (#118823) next »