Skip to content

Commit

Permalink
open track file in UTF8 encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbrooks committed Apr 18, 2014
1 parent b0674c4 commit 9dad2f2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion twitter_monitor/checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ def update_tracking_terms(self):
Terms must be one-per-line.
Blank lines will be skipped.
"""
with open(self.filename) as input:
import codecs
with codecs.open(self.filename,"r", encoding='utf8') as input:
# read all the lines
lines = input.readlines()

Expand Down

0 comments on commit 9dad2f2

Please sign in to comment.