Page 1 of 1

How to insert unicode data into mysql using php script from

Posted: Sun Dec 27, 2009 2:22 pm
by 0miyu
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.

Re: How to insert unicode data into mysql using php script from

Posted: Sun Dec 27, 2009 4:41 pm
by kalidG
If you provide us with some code example we can help you