search

Home  >  Q&A  >  body text

The Chinese in the title cannot be displayed

01.png

OllieOllie2272 days ago1587

reply all(8)I'll reply

  • 李铁蛋

    李铁蛋2018-10-23 21:51:15

    <head>
    	<meta charset="UTF-8">
    	<title>Document</title>
    </head>

    Just add<meta charset="UTF-8">

    reply
    0
  • 李铁蛋

    what's the situation. . . Just add a meta

    李铁蛋 · 2018-10-23 21:52:06
    李铁蛋

    Otherwise, the encoding of your own file is wrong and needs to be set to utf-8.

    李铁蛋 · 2018-10-23 21:56:54
    李铁蛋

    That should be your file encoding problem sublime--file--set file encoding--utf-8

    李铁蛋 · 2018-10-24 08:58:49
    Ollie

    But in the title bar of that editor, it cannot display Chinese characters. What is the problem?

    Ollie · 2018-10-23 22:37:31
  • 藏色散人

    藏色散人2018-10-11 09:03:22

    Garbled code. Set encoding  header("content-type:text/html;charset=utf-8"); 

    reply
    0
  • Ollie

    Where to set it?

    Ollie · 2018-10-11 09:08:05
    藏色散人

    Just add this code directly at the beginning of your PHP page

    藏色散人 · 2018-10-11 09:12:15
    Ollie

    Mine is an html document, and I am still learning js. How should this be done?

    Ollie · 2018-10-11 15:40:59
    李铁蛋

    Added to

    李铁蛋 · 2018-10-23 21:48:52
  • Cancelreply