I was inserting records into a MySQL table using php and got an error that says: The original string in the ‘message’ field is actually This error is surprising given that the string is actually in UTF-8 encoding and the field in the MySQL table is declared as utf8_unicode_ci type. The solution that I found it is to call the php function utf8_encode to encode string before inserting into the MySQL table. Posted in Programming |
Print
|