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 $ con = mysql_connect ($ server, $ user, $ pass); Instead of my words

the code I am using is normal SELECT

  $ con = mysql_connect; Mysql_select_db ($ db, $ con) or die ("no db"); $ Query = "SELECT` from app_desc`` where` id` = $ id "; $ Result = mysql_query ($ query);   

And I also tried to add

  mysql_set_charset ('windows-1255', $ con);   

or

  mysql_set_charset ('utf8', $ conn);   

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

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -