mysql_set_charset
mysql_set_charset
Sets the client character set
Waarschuwing: >
mysqli_set_charset``charset``charset=utf8
bool **mysql_set_charset** string $charset resource $link_identifier
Sets the default character set for the current connection.
charsetA valid character set name.
return.success
Opmerking: > This function requires MySQL 5.0.7 or later.
Opmerking: > This is the preferred way to change the charset. Using to set it (such as ) is not recommended. See the section for more information.
mysql_query``SET NAMES utf8MySQL character set concepts
Setting character sets in MySQLList of character sets that MySQL supportsmysql_client_encoding