python Why Python 3 doesn't write the Unicode BOM Python doesn't always output a Unicode Byte Order Mark. This can cause problems for programs which expect to see it. This post outlines when and why Python doesn't output the BOM, and how to fix it.