On windows, with "stock" PHP 5.1.2, there is no set_charset function at all. One may have to replace php_mysqli.dll, and libmysql.dll with proper versions, which provided by MySQL at http://dev.mysql.com/downloads/connector/php/
![]() | mysqli_set_charset(PHP 5 >= 5.1.0RC1) mysqli_set_charset(no version information, might be only in CVS) mysqli->set_charset -- Sets the default client character setDescriptionbool mysqli_set_charset ( mysqli link, string charset )The mysqli_set_charset() function sets the default character set (specified by the charset parameter) to be used when sending data from and to the database server represented by the link parameter.
范例
上例将输出:
![]()
coder at punkass dot com
13-Apr-2006 02:13
On windows, with "stock" PHP 5.1.2, there is no set_charset function at all. One may have to replace php_mysqli.dll, and libmysql.dll with proper versions, which provided by MySQL at http://dev.mysql.com/downloads/connector/php/
| ![]() | |||