Reputation:
i am using Codeigniter and mysql . when i insert a persian string into mysql via codeIgniter code, '?' will store in field per character.
what is wrong?
for example : 'سلام' ---> '????'
Upvotes: 3
Views: 378
Reputation: 6378
The problem is not with Codeigniter ,Actually some functions in codeigniter are just parsers. But it makes it easier ,
Upvotes: 0
Reputation: 35126
Is your table created with utf8 characterset? Did you call mysql_set_charset to change the charset to utf8 before executing your query?
Read
Upvotes: 2