データベースから取得した国の多くの文字列を印刷したいのですが、使用するたびに不思議な文字が表示されます:
utf8_encode($string); the out put is (Algérie , Arménie ,Azerbaïdjan ,Biélorussie )
utf8_decode($string); -> (Algérie , Arménie , Azerba?djan , Bi?lorussie )
htmlentities($string); -> (Alg�©rie , Arm�©nie ,Azerbaïdjan, ... )
私はヘッダーに入れようとしました:
header ("Content-Type:text/html;charset=ISO-8859-1"); ->Arménie , Azerbaïdjan
と
header ("Content-Type:text/html;charset=utf-8"); -> Azerba�djan
データベースの構成をチェックインしたところ、見つかりました
$db['default']['char_set'] = 'utf8';
$db['default']['dbcollat'] = 'utf8_unicode_ci';
何か案が ?