you have to do those three things and there you go
1- change the encoding of your editor programm which you use to UTF-8 .
2- put in your php files this
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
3- put the collation in your database to UTF-8
in conclusion use UTF-8 everywhere.
I just noticed, that sometimes, when retrieving from the database, I get truncated strings, like I just get half of the string, why is that? and also, at a certain letter I get a small black square with question mark in it and stops at that place, why is that too?
nice that it works for you to get data in arabic and save them to database by arabic , now i see its other questions wich im not really see where is problem but i can just give some notes . about truncated strings try look if in this column in database is limited varchar length. exemple if your string is 35 long and in database you defined varchar(25) so you get it truncated. about i say that all letters works normal only maybe there is with it some fatha or kasra or damma which maybe not reconized, you must check and debug why happening this , i never met those things. Thanks
About the truncated strings, I have the varchar length to be 100, and all strings are for sure less than 50 even. As for the not recognized letters, I'll make sure now about the punctuations to see if its because of it. Thanks for your reply
I made sure there are no punctuations, but still I get the black diamond shape with question mark in it.