search

Home  >  Q&A  >  body text

css - 为什么我的:before 在服务器上不能显示?

table2 p:before{ content:"¥"; }

在服务器上显示乱码,后面的数字是后端传上去的

伊谢尔伦伊谢尔伦2782 days ago919

reply all(4)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-04-17 12:03:54

    The encoding is wrong. One character becomes two characters. It means that your server uses single-byte ASCII encoding. You need to change your encoding to utf-8 or gbk. utf-8 is currently more commonly used

    reply
    0
  • 黄舟

    黄舟2017-04-17 12:03:54

    Common standard character sets: ASCII ISO GBK Unicode utf; ASCII is a 7-bit encoding character set, which is basically only applicable to English, 8-bit ISO supports most Latin languages, and 16-bit encoding GBK and Unicode fully support the Chinese language. UTF8 is an international encoding and its versatility is better. GBK is a national encoding and its versatility is worse than UTF8. However, UTF8 occupies a larger database than GBK

    reply
    0
  • 黄舟

    黄舟2017-04-17 12:03:54

    Can I ask some normal questions

    reply
    0
  • 巴扎黑

    巴扎黑2017-04-17 12:03:54

    Do you make font icons? The font file was not referenced successfully

    reply
    0
  • Cancelreply