What's the difference between UTF-8 and UTF-8 without BOM?

前端 未结 21 1448
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-21 05:45

What\'s different between UTF-8 and UTF-8 without a BOM? Which is better?

21条回答
  •  醉话见心
    2020-11-21 06:11

    Here is my experience with Visual Studio, Sourcetree and Bitbucket pull requests, which has been giving me some problems:

    So it turns out BOM with a signature will include a red dot character on each file when reviewing a pull request (it can be quite annoying).

    If you hover on it, it will show a character like "ufeff", but it turns out Sourcetree does not show these types of bytemarks, so it will most likely end up in your pull requests, which should be ok because that's how Visual Studio 2017 encodes new files now, so maybe Bitbucket should ignore this or make it show in another way, more info here:

    Red dot marker BitBucket diff view

提交回复
热议问题