Skip to content

Commit

Permalink
Merge pull request #1 from leopku/patch-1
Browse files Browse the repository at this point in the history
[Fixed UnicodeDecodeError]UnicodeDecodeError: 'utf-8' codec can't decode byte 0xca in position 97: invalid continuation byte
  • Loading branch information
Gordon Lee authored May 12, 2019
2 parents 3b0b86a + e3cadbc commit 804483e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion QA_data/QA_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

cursor = conn.cursor()
stop_words = []
with open('./QA_data/stop_words.txt') as f:
with open('./QA_data/stop_words.txt', encoding='gbk') as f:
for line in f.readlines():
stop_words.append(line.strip('\n'))

Expand Down

0 comments on commit 804483e

Please sign in to comment.