I\'m trying to insert an hebrew value into my mysql db, instead of hebrew the values looks like that.
שדגשדכעשד
I have solved my Hebrew language problem. It was a database and table row/field encoding issue. Here is the solution I used. I took help from another answer and the link is given below, in case anyone needs it.
utf8_general_ci
. utf8_general_ci
.In the PHP connection script put
header('Content-Type: text/html; charset=utf-8');
In the xhtml head tag put
If you are using MySQLi put this code in the connection script after selecting the database:
mysql_query("SET NAMES 'utf8'");
If you are using PDO, put
$conn->query("SET NAMES 'utf8'");
The first answer helped me and I took it from there