codeigniter-mysql and persian insertion
i am using Codeigniter and mysql . when i insert a persian string in开发者_如何转开发to mysql via codeIgniter code, '?' will store in field per character.
what is wrong?
for example : 'سلام' ---> '????'
Is your table created with utf8 characterset? Did you call mysql_set_charset to change the charset to utf8 before executing your query?
Read
- UTF8, PHP and MySQL
- Does your PHP/MySQL Speak Unicode
The problem is not with Codeigniter ,Actually some functions in codeigniter are just parsers. But it makes it easier ,
精彩评论