mysql - sql encoding in php script -
Hey, I'm using mysql in Hebrew, but when I try to preview SQL in the page, So i see ????? Formula the code I am using is normal SELECT And I also tried to add or Whenever I see it in PHPmyAdmin, it should show as it should. What do I have to do? This is also the database encoding Utf8_general_ci and the page encoding is utf-8 OK I'm silent. Thanks for your reply. The problem is that the DB encoding was UTF-8 but the table was Latin Well I'm The problem is that the DB encoding was UTF-8 but the table was Latin $ con = mysql_connect ($ server, $ user, $ pass); Instead of my words
$ con = mysql_connect; Mysql_select_db ($ db, $ con) or die ("no db"); $ Query = "SELECT` from app_desc`` where` id` = $ id "; $ Result = mysql_query ($ query);
mysql_set_charset ('windows-1255', $ con);
mysql_set_charset ('utf8', $ conn);
Comments
Post a Comment