SyntaxFix
Write A Post
Hire A Developer
Questions
Use codecs.open with the encoding parameter.
import codecs f = codecs.open("test.html", 'r', 'utf-8')