How to insert unicode data into mysql using php script from
Posted: Sun Dec 27, 2009 2:22 pm
I am running this php code from command line that fetches text (may contain unicode characters) and insert into a mysql table. I verified that the php variables have the unicode text, but when it does an insert, the table columns are blank. I can accomplish the same with an html form without any issues. The table charset is utf8 and i use set names utf8 before the query. Any answers will help.