php - Codeigniter active record doesn't run Queries containing Unicodes properly -
i want run query says:
select * (
restaurants)restaurant_name'دالون'
i've used active record make query, result is
select * (
restaurants)restaurant_name'%\%d8\%af\%d8\%a7\%d9\%84\%d9\%88\%d9\%86%'
and database doesn't return result.
my first q change called?
and turn off?
make sure character encoding in config.php follows:
$config['charset'] = "utf-8"; also, want change database configs match following:
$db['default']['char_set'] = "utf8"; $db['default']['dbcollat'] = "utf8_unicode_ci"; hope helps!
Comments
Post a Comment