What's  sign at the beginning of my source file?

后端 未结 4 1145
隐瞒了意图╮
隐瞒了意图╮ 2021-01-04 08:36

I have a PHP source file where  characters automatically got added in! I don\'t know from where they have come. I\'m not getting any parse errors but it results in weird

4条回答
  •  孤独总比滥情好
    2021-01-04 09:36

    It's called Byte Order Mark, and doesn't always have to be "". http://en.wikipedia.org/wiki/Byte_order_mark

    Some Windows applications add BOM by default. In Notepad++ you can use some options in the Encoding menu like Encode in UTF without BOM or Convert to UTF without BOM.

提交回复
热议问题