search

Home  >  Q&A  >  body text

In site domain name management, after entering the domain name in the browser, it cannot display Chinese but can only display English. Why?

<?php

echo "<h2>Welcome to php Chinese website to learn</h2>";

?>


zzzz2108 days ago1191

reply all(1)I'll reply

  • angryTom

    angryTom2019-07-15 14:34:13

    If the Chinese characters are garbled, you can add a line of this code

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


    reply
    0
  • Cancelreply