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 : ‘سلام’ —> ‘????’
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Is your table created with utf8 characterset?
Did you call mysql_set_charset to change the charset to utf8 before executing your query?
Read