search

Home  >  Q&A  >  body text

What should I do if the Chinese characters output by echo are garbled?

echo 'Hello, PHP';

你怎么这么好看你怎么这么好看2106 days ago1434

reply all(1)I'll reply

  • Xxxxxxyp

    Xxxxxxyp2019-05-27 17:25:15

    Try to change the encoding format to utf-8

    Or add a header("content-Type: text/html; charset=utf-8")

    reply
    0
  • Cancelreply