首页  >  问答  >  正文

运行出现乱字

运行文件后出现乱字是怎么回事啊

吥离吥弃吥离吥弃2401 天前1226

全部回复(5)我来回复

  • 吥离吥弃

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

    谢谢,我自己再去试试

    回复
    0
  • 吥离吥弃

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

    我就写了utf编码

    回复
    0
  • PHP中文网

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

    php页面为utf编码

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

    php页面为gbk编码

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

    php页面为big5编码

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

    通常情况以上代码放在php页面的首页

    用header或meta实现PHP页面编码的区别

    一、页面编码

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


    回复
    0
  • 吥离吥弃

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

    怎么申明

    回复
    0
  • Sanys

    Sanys2018-02-23 15:36:09

    声明下编码?

    回复
    0
  • 取消回复