These two methods are used to set the encoding when php loads a page. There are two ways to set php page encoding when loading pages. one is to output the meta tag, and the other is to use the header function, the following describes in detail the php loading page encoding methods for setting php loading pages.
There are two ways to set php page encoding: one is to output the meta tag and the other is to use the header function. The following describes in detail.
Two methods for setting page encoding when php loads a page
1: output meta tag:
1. echo ''in the controller of php mvc or on the php page '';
2. on the php page or html page
2: Use the header function
In the controller or page header ("content-type: text/html; charset = utf-8 ");
There are two ways to set php page encoding for the plugin: one is to output the meta tag and the other is to use the header function. The following describes the php loading page in detail...