There are two ways to set the PHP page encoding. One is to output the meta tag, and the other is to use the header function. The following is Let’s introduce it in detail
Two ways to set the page encoding when PHP loads the page
1: Output meta tag:
1. In the php mvc controller or php page echo '';
2. On the php page or html page
2: Use header function
In the controller or page header("content-type:text/html; charset=utf-8");