Welcome Guest, Not a member yet? Register   Sign In
UTF-8 problem in CodeIgniter when fetch data from mysql
#1

[eluser]Sarwar CSE[/eluser]
UTF-8 problem in CodeIgniter from mysql Problem

when i fetch utf data from mySql database using codeigniter active record then my text show like this

বাংলা নাম চেক করার জনà§à¦¯

actual text is

বাংলা নাম চেক করার জন্য

i have checked the config file
Code:
$db['default']['char_set'] = 'utf8';
$db['default']['dbcollat'] = 'utf8_general_ci';

Code:
Without using Codeigniter i can show the text accurately in web site.
#2

[eluser]Aken[/eluser]
Make sure your HTML view is set to utf8 charset also.
#3

[eluser]Mauricio de Abreu Antunes[/eluser]
And your file is encoded as utf-8 too.




Theme © iAndrew 2016 - Forum software by © MyBB