print out content from my db threw a php function but it doesn't recognize the language (hebrew)?
the output is a set of question mark开发者_Python百科s the all the tables are encoded utf8_general_ci..
you need to set the charset of the connection. you do it like that: mysql_query('SET NAMES utf8'); add this code before your query.
anyway, you better use one of the newer data base extensions of php. http://il2.php.net/pdo or http://il2.php.net/mysqli
精彩评论