0miyu Posted December 27, 2009 Share Posted December 27, 2009 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. Link to comment https://forums.phpfreaks.com/topic/186457-how-to-insert-unicode-data-into-mysql-using-php-script-from-the-command-line/ Share on other sites More sharing options...
premiso Posted December 27, 2009 Share Posted December 27, 2009 Without seeing the code, you will not get much help. Post some code that you are using, specifically where the data is input / put into the database and 5-10 lines before and after that. Link to comment https://forums.phpfreaks.com/topic/186457-how-to-insert-unicode-data-into-mysql-using-php-script-from-the-command-line/#findComment-984623 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.