How to insert a text with special chars in mysql using codeigniter
问题 I am trying to insert a text in mysql database that contains special chars (example : 'é' ) the text is inserted and 'é' is replaced with '?' i am using codeigniter active record Can anyone explain to me how to do that? Thanks in advance! 回答1: You need to create the database using collation utf8_unicode_ci. Also for phpMyAdmin. After creating the database click on the operations tab at the bottom you can change the database to the utf8_unicode_ci. For more information Here 回答2: Following