I have a question! I want to print an unicode string in php (like \'سلام\')! but when I use echo only some ??? apear!!!
what whould I do??? This happens hen I want to c
You need to do three things:
SET NAMES 'utf8' before selecting records.Content-type HTTP header to (e.g.) text/html; charset=utf-8.Of course, replace "UTF-8" with whatever encoding you want which supports the characters you need. There's no need to change the database tables (except for possible performance gains). You may need to change HTML templates, etc. if you decide on UTF-16 or something else which isn't (mostly) ASCII-compatible.