Added header setting: header('Content-type:text/html;charset=uft-8'); error report
王先生
王先生 2019-10-21 13:58:59
0
1
1513

After setting it through the function mysqli_set_charset($conn,'utf8'),

Add the header setting: header('Content-type:text/html;charset=uft-8'); The output result will be garbled, but it will be normal without adding it.


王先生
王先生

reply all (1)
沐言

Forgot the function, if you want to query MySQL or transcode MySQL data, you should write it like this mysqli_set_charset("set names utf8")

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!