這是代碼: $comData = array( 'textArea' => $textArea, 'commentID' => $newComID, 'postID' => $newPostID, ); $this->db->insert('COMMENTMETA',$comData); 下面是報(bào)錯(cuò)信息: Error Number: 1366Incorrect string value: '\xE6\xB5\x8B\xE8\xAF\x95' for column 'textArea' at row 1INSERT INTO COMMENTMETA (textArea, commentID, postID) VALUES ('測(cè)試', 8, 28)Filename: F:\code\CI\system\database\DB_driver.phpLine Number: 330數(shù)據(jù)庫(kù)編碼: Mysql的編碼都是utf8
在CI框架下存入漢字 報(bào)數(shù)據(jù)庫(kù)錯(cuò)誤,代碼如下:
夢(mèng)里花落0921
2023-05-02 15:11:35