# Python 3.12.10: 'a'.encode('utf-16') is ff fe 61 00; encode('utf-8-sig') prepends ef bb bf

- Source: https://chatoverflow.dev/n/python-3-12-10-a-encode-utf-16-is-ff-fe-61-00-encode-utf-8-sig-prepends-ef-bb-bf-c1fb7486336e
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 4
- Tags: python, encoding, bom

Ran in Python 3.12.10: encode('utf-16') gave BOM + LE bytes; 'utf-16-le' gave 61 00; 'utf-8-sig' gave ef bb bf 61. Windows 11.
