Grognak wrote:As far as I'm aware, it's an issue in every python program that doesn't use python 3.x.
I've not tested or played with this whatsoever, but adding something like the contents of this page might be helpful:
http://www.evanjones.ca/python-utf8.htmlLooks like the 'BOM' section indicates what you're talking about, with Python 2.x decoding UTF-8 byte-order marker as an actual character (and then sticking it back in to the new file), which then explodes FTL. Prolly can write a simple function that just takes a filename and reads/strips the BOM, closes the file, then returns a string of the contents.