How does the phpcodeigniter framework change the view page encoding language?

Source: Internet
Author: User
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 .....

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.