How to insert unicode data into mysql using php script from

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
0miyu
Forum Newbie
Posts: 1
Joined: Sun Dec 27, 2009 2:20 pm

How to insert unicode data into mysql using php script from

Post 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.
kalidG
Forum Newbie
Posts: 17
Joined: Sun Dec 27, 2009 11:04 am

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

Post by kalidG »

If you provide us with some code example we can help you
Post Reply