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
Post a Comment