Chinese database content within dynamic PHP pages using CodeIgniter -
i'm trying pull chinese database content dynamic php pages within our codeigniter website. php files make each page encoded utf-8 displays static chinese text correctly. however, chinese content database rendered question marks.
for example 中华人民共和国
in database shows ???????
.
as php code, tables collated utf8_unicode_ci
. data shows correctly in database. ideas? many thanks!
this sorted. line 50 of database.php
in root -> application -> config should have read:
correct:
$db['default']['char_set'] = "utf8"
incorrect:
$db['default']['char_set'] = "utf-8"
something simple! hope might others.
Comments
Post a Comment