Skip to content

Commit

Permalink
Encode HTML response in Unicode.
Browse files Browse the repository at this point in the history
Encoding the HTML string in utf8 before passing it on to the
communicator for printing should fix issue #115.
  • Loading branch information
jovanbulck committed Jan 7, 2017
1 parent cad13d1 commit f71b37f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kotnetcli/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def login_resultaten(self, co, creds):
sys.exit(EXIT_FAILURE)
except UnknownRCException, e:
(rccode, html) = e.get_info()
co.eventFailureUnknownRC(rccode, html)
co.eventFailureUnknownRC(rccode, html.encode('utf-8'))
sys.exit(EXIT_FAILURE)

class LogoutWorker(SuperNetworkWorker):
Expand Down

0 comments on commit f71b37f

Please sign in to comment.