search

Home  >  Q&A  >  body text

Garbled characters

Why the Chinese characters displayed are garbled

huahua2256 days ago1556

reply all(2)I'll reply

  • 雪梦晨、曦

    雪梦晨、曦2018-09-20 11:50:01

    Write in the php file:

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

    or write

    in the html file

    <meta charset="UTF-8">

    reply
    0
  • hua

    Just write conn->query("set names -8utf") in the function file. Thank you.

    hua · 2018-09-20 11:52:48
    hua

    utf-8

    hua · 2018-09-20 11:53:05
    雪梦晨、曦

    I really don’t understand your reply, haha, just solve it

    雪梦晨、曦 · 2018-09-20 14:18:00
  • Cancelreply