public function index(){ echo 'Hello friend';exit;}Page output Huanhui chain concubine
Where do I need to set it?
Set the meta of html and specify the character encoding. If the php code is utf8, just add a tag to specify that the html encoding is also utf8.
header function. Go check the manual. header("charset=UTF-8")
Set the meta of html and specify the character encoding. If the php code is utf8, just add a tag to specify that the html encoding is also utf8.
header function. Go check the manual. header("charset=UTF-8")