[PHP]phpMyAdmin中文亂碼解決方式

1.資料庫資料表的"編碼與排序"均設定成"utf8_unicode_ci"

2.PHP語法加入  header("Content-Type:text/html; charset=utf-8");

3.mysqli_query($conn,"SET NAMES 'utf8'"); //其中$conn資料庫是連線資訊

留言

這個網誌中的熱門文章

[Arduino]電子秤平 重量感測條+HX711AD模組

cpe練習筆記 UVa401 Palindromes

cpe練習筆記 UVa10019 Funny Encryption Method