Phpcodeigniter framework how to change view page encoding language English is Chinese I am a newbie I just learned php use codeigniter framework practice to change the content of the page to Chinese after debugging the website found that the output is garbled, who knows how to solve this problem?
Reply to discussion (solution)
This should be a question for the browser. if you open the. html file and add the following sentence to the head tag
If the php page is opened
Add
Header ("Content-type: text/html; charset = utf-8 ");
What I'm calling is. php extension file, with header ("Content-type: text/html; charset = utf-8") added at the beginning of the file; this debugging output directly on the page
Dizzy, I use Google browser selected encoding is UTF-8 php file encoding is also UTF-8 results are garbled
It's strange to change the browser encoding to gb18030 .....