Skip to content

Commit

Permalink
Change decode default 'ascii' codec to 'utf-8'
Browse files Browse the repository at this point in the history
Change decode default 'ascii' codec to 'utf-8' for the benefit of other languages
  • Loading branch information
Johan authored Sep 5, 2018
1 parent 408b6db commit 2bb919b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autosub/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def __call__(self, data):
except requests.exceptions.ConnectionError:
continue

for line in resp.content.decode().split("\n"):
for line in resp.content.decode('utf-8').split("\n"):
try:
line = json.loads(line)
line = line['result'][0]['alternative'][0]['transcript']
Expand Down

0 comments on commit 2bb919b

Please sign in to comment.