user421125
user421125

Reputation:

codeigniter-mysql and persian insertion

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

Answers (2)

Red
Red

Reputation: 6378

The problem is not with Codeigniter ,Actually some functions in codeigniter are just parsers. But it makes it easier ,

Upvotes: 0

Muhammad Hasan Khan
Muhammad Hasan Khan

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

Related Questions