import codecs

with codecs.open('input.txt', 'r', 'utf-8') as fin:
	...