Piotr added the comment: Ok I have tried it(I had to remove ЉЊЈЁЂ from *.txt - my cp is 1250):
c:\tmp>type test.py compile(open("tokenize_tests-utf8-coding-cookie-and-utf8-bom-sig.txt").read(), "bom3.py", 'exec') c:\tmp>c:\Python34\python.exe test.py Traceback (most recent call last): File "test.py", line 1, in <module> compile(open("tokenize_tests-utf8-coding-cookie-and-utf8-bom-sig.txt").read(), "bom3.py", 'exec') File "bom3.py", line 1 # -*- coding: utf-8 -*- ^ SyntaxError: invalid character in identifier Is it something in my setup? ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25051> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com