printing \ufeff in Python Posted on 2022-10-09 In issue Disqus: When using utf-8 to decode in Python, some files will include "\ufeff" at the beginning of the file When using utf-8 to decode in Python, some files will include \ufeff at the beginning of the file. This is because the file is encoded in utf-8 with BOM (Byte Order Mark). So we need to use utf-8-sig to decode the file. Reference https://www.cnblogs.com/lansan0701/p/10600220.html