Skip to content

Commit

Permalink
Update acamar.py
Browse files Browse the repository at this point in the history
Fix `UnicodeEncodeError: 'ascii' codec can't encode characters in position 18-19: ordinal not in range(128)` with `encode('utf-8')`.
  • Loading branch information
Damian Ebelties authored Oct 11, 2018
1 parent e8f9efc commit efcf6cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion acamar.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ def enumAsk():

try:
for i in result:
output.write(i + '\n')
output.write(i.encode('utf-8') + '\n')
finally:
output.close()

Expand Down

0 comments on commit efcf6cd

Please sign in to comment.