laravel5.1 Chinese garbled code
仅有的幸福
仅有的幸福 2017-05-16 16:47:10
0
2
390

public function index()
{
echo 'Hello friend';exit;
}
Page output Huanhui chain concubine

Where do I need to set it?

仅有的幸福
仅有的幸福

reply all(2)
阿神

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.

phpcn_u1582

header function. Go check the manual. header("charset=UTF-8")

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template