SyntaxFix
Write A Post
Hire A Developer
Questions
Use codecs module's open() to read file:
import codecs with codecs.open(file_name, 'r', encoding='utf-8', errors='ignore') as fdata: