I have some simple pages that do not have database data and only statically load from the controller. I installed everything possible for UTF-8 encoding. I checked the headers that result in UTF-8 . However, he still parses the incorrect readings of these characters:.
controller
function index(){ $this->load->view('french/header_view'); $this->load->view('french/homepage_view'); $this->load->view('french/footer_view'); }
Configuration file :
$config['charset'] = "UTF-8";
View Header :
<? header("Content-Type: text/html; charset=UTF-8"); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html > <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> ....
Symbols used in body representation :
géniales - à - époustouflant
Symbols generated :
se g niales!
Where am I wrong? Thank you for your help!
php codeigniter character-encoding
Ice
source share