Thomas Heller wrote: > I wonder: do I really have to check for the BOM manually, or is there a > Python function which does that? It should be part of the standard library IMHO. Here is my own more complete implementation: http://www.bitpim.org/pyxr/c/projects/bitpim/common.py.html#0286 Roger