I'm currently writing a php5 web application. It suppose to extract data from the DB and show it in an HTML page. In order to show Hebrew characters, the charset encoding in the HTML is:charset=windows-1255
The application is configured to work with MySQL.
I have problems with the Hebrew encoding, it's actually some kind of paradox...
1. When I configure the collation in the DB table to be UTF_bin
and the charset UTF-8
:
The Hebrew characters that extracted from the db are shown fine, the HTML Hebrew not.
2. When I configure the collation in the DB table to be UTF_bin
and the charset windows-1255
:
The Hebrew characters that extracted from the db are show are show as random characters, the HTML Hebrew is ok.
Does anyone has an idea how to solve it?
Thanks!