CodeIgniter Forums
cant store arabic text in mysql ! - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: cant store arabic text in mysql ! (/showthread.php?tid=29288)



cant store arabic text in mysql ! - El Forum - 04-05-2010

[eluser]3m masr[/eluser]
hi everyone ,

i am using codeigniter and trying to store arabic text in my mysql database results in question marks ????? instead of the text i stored in arabic .. i wanna know if any changes should be made in the db or the form i use ( i am using the scaffolding by the way ) .. any help will be strongly appreciated !


cant store arabic text in mysql ! - El Forum - 04-05-2010

[eluser]abada[/eluser]
hi 3m masr

be sure the db encoding is utf-8

it work with me Smile


cant store arabic text in mysql ! - El Forum - 04-07-2010

[eluser]3m masr[/eluser]
thanks man
i had to change the fields encoding to utf8_general_ci
and put an encoding instruction using html in index.php


cant store arabic text in mysql ! - El Forum - 04-07-2010

[eluser]abada[/eluser]
good luck my friend Smile