From 4de216e87317b66714d183f5549557dad381d866 Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Fri, 4 Aug 2017 14:40:36 +0200 Subject: Ignore non-UTF8 characters in input in Python 3 mode I don't think that this is in line with the RFCs, but it seems like an OK limitation for now. Closes #32. --- miniircd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miniircd b/miniircd index 2dec14c..0be254d 100755 --- a/miniircd +++ b/miniircd @@ -43,7 +43,7 @@ if PY3: return msg.encode() def socket_to_buffer(buf): - return buf.decode() + return buf.decode(errors="ignore") else: def buffer_to_socket(msg): return msg -- cgit v1.2.3