For future use, if you have this issue and you are using PDO and not mysqli, you will need to do it like this:
- The Database (all of it) collation has to be utf8_general_ci.
- Set the collation of the table with Hebrew also to utf8_general_ci.
- In the HTML "head" tag, add this: < meta charset="utf-8" >
- In your PHP connection file, add after the connection Query this line: conn->exec("set names utf8");
- if you are using classes, then you will probably have the "conn" as a variable.
in that case, you will have to use it like this:
$this->conn->exec("set names utf8");
Hope this helps to future people that have this problem and using PDO.
Best of luck.