search

Home  >  Q&A  >  body text

Garbled characters appear when running

Why are the garbled words appearing after running the file?

吥离吥弃吥离吥弃2583 days ago1340

reply all(5)I'll reply

  • 吥离吥弃

    吥离吥弃2018-02-23 15:51:22

    Thank you, I will try it myself

    reply
    0
  • 吥离吥弃

    吥离吥弃2018-02-23 15:50:48

    I just wrote utf encoding

    reply
    0
  • PHP中文网

    PHP中文网2018-02-23 15:49:36

    php page is utf encoded

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

    php page is gbk encoded

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

    php page is big5 encoded

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

    Usually the above code is placed on the home page of the php page

    The difference between using header or meta to implement PHP page encoding

    1. Page encoding

    1. 使用 <META http-equiv="content-type" content="text/html; charset=xxx"> 标签设置页面编码


    reply
    0
  • 吥离吥弃

    吥离吥弃2018-02-23 15:39:01

    How to declare

    reply
    0
  • Sanys

    Sanys2018-02-23 15:36:09

    Declare the encoding?

    reply
    0
  • Cancelreply