As UTF-8 is an 8-bit encoding no BOM is required and anyU+FEFF character in the decoded Unicode string (even if it’s the firstcharacter) is treated as a ZERO WIDTH NO-BREAK SPACE.

UTF-8以字节为编码单元,它的字节顺序在所有系统中都是一様的,没有字节序的问题,也因此它实际上并不需要BOM(“ByteOrder Mark”)。但是UTF-8 with BOM即utf-8-sig需要提供BOM。

相关文章:

  • 2021-10-23
  • 2019-07-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-11
  • 2021-08-03
猜你喜欢
  • 2021-12-12
  • 2022-12-23
  • 2021-12-06
  • 2021-08-07
  • 2021-08-09
  • 2021-04-04
相关资源
相似解决方案