從mysql中取出latin1編碼的漢字肯腕,輸出時(shí)顯示亂碼
http://blog.csdn.net/wzwsj1986/article/details/1723658
SET character_set_client = utf8;
SET character_set_results = utf8;
SET character_set_connection = utf8;
看看這3個(gè)變量的作用:
信息輸入路徑:client→connection→server洒疚;
信息輸出路徑:server→connection→results。
和數(shù)據(jù)庫(kù)編碼無(wú)關(guān) 在于 PHP連接輸入輸出 字符集
亂碼例子:latin1編碼
????????°???
同時(shí)不同系統(tǒng)下的 換行符問(wèn)題 導(dǎo)致文件被改動(dòng)