Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
use codecs module.
import codecs f = codecs.open('file.txt','r','utf8')
this will open your file forcing the utf8 encoding