mysql - utf8 encoding is not working correctly in php -


i using magazine name listing program using php. here used manipulate different languages.

i inserting magazine name table. field name

 tbl_magazine  field type - varchar(32 collation utf8_general_ci 

when insert different languages table [using google translator]. correctly inserted db [like viewing in database সঙ্গে পরীক্ষা]. when retrieve using php record show ????? this.

if know this, please me.

set database connection utf8:

mysql_query("set character set utf-8", $conn); mysql_query("set names utf-8", $conn); 

also ensure http responses interpreted utf8:

header("content-type: text/html; charset=utf-8"); 

Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -