search

Home  >  Q&A  >  body text

What should I do if the Chinese characters are garbled?

The Chinese output in php becomes garbled when accessed by the browser. What should I do?

BisBis2179 days ago1447

reply all(3)I'll reply

  • 韦小宝

    韦小宝2019-03-02 09:25:51

    Just define the encoding format for the header

    header("Content-type: text/html; charset=utf-8");


    reply
    0
  • RuneSlyer

    RuneSlyer2019-03-01 21:30:47

    One is the browser, whether the encoding is utf-8

    The other is<meta charset="utf-8">

    reply
    0
  • Cancelreply