Sniffing encoding type by looking at file BOM header

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Thu Mar 25 19:16:39 EDT 2010


In message <mailman.1139.1269442366.23598.python-list at python.org>, 
python at bdurham.com wrote:

> BOM_UTF8     = '\xef\xbb\xbf'

Since when does UTF-8 need a BOM?



More information about the Python-list mailing list