Salem Salem - 5 months ago 33
PHP Question

Reading 1256ara encoding (Arabic letters) from sybase using php-apache2

I'm facing a problem reading arabic letters from a sybase database on php-apache2. I'm using an ODBC connector, and the select query returns only english letters.

My problem is I can't modify the database encoding.
I tried using

, and setting charset in the header with no luck.

Any suggestions would be appreciated.


Finally solved it! In my select query i cast the column containing Arabic characters as varbinary, then i used iconv('windows-1256','utf-8,$stringToDisplay)