//PDO
$conn->query("SET NAMES utf8");
or
$conn->exec("set names utf8");
//mysqli
mysql_query("set names 'utf8'");
Code Example |
---|
:: |
Php :: |
:: |
:: |
:: |
:: |
:: |
:: |
:: |
:: |
:: |
:: |
:: |
Javascript :: |
:: |
:: |
:: |
:: |
:: |
Javascript :: |
:: |
:: js replace space |
:: |
:: |
Javascript :: |
:: |
:: |
:: |
:: |
:: |