Home  >  Q&A  >  body text

Why does garbled code appear when submitting this webpage to Google Chrome using phpstorm?

Why does it prompt garbled characters when using phpstorm to submit this webpage to Google Chrome?

JerryJerry2442 days ago1601

reply all(4)I'll reply

  • Jerry

    Jerry2018-01-17 15:57:32

    problem solved

    reply
    0
  • 土豆你个西红柿

    土豆你个西红柿2018-01-17 15:56:24

    Inconsistent utf8 will lead to garbled characters (the browser also needs to set utf8 accordingly during the saving process of html)

    reply
    1
  • ringa_lee

    ringa_lee2018-01-15 20:56:32

    Garbled characters are usually encoding problems

    1. File encoding, see if it is a utf8 file, and whether there is a bom header

    2.html encoding

    3.database Encoding

    Usually these three situations lead to garbled codes. You can debug them separately. If you don’t understand, you can ask me again

    reply
    0
  • Jaty

    Jaty2018-01-15 19:31:47

    Encoding must be set in the web page code.

    reply
    1
  • Cancelreply