diff -r 38ffc8fbc782 -r e68bcb2b5ec1 src/eric7/MicroPython/MicroPythonReplWidget.py --- a/src/eric7/MicroPython/MicroPythonReplWidget.py Tue Nov 26 17:07:48 2024 +0100 +++ b/src/eric7/MicroPython/MicroPythonReplWidget.py Tue Nov 26 19:46:36 2024 +0100 @@ -576,7 +576,10 @@ length = 2 else: length = 1 - txt = data[index : index + length].decode("utf8") + try: + txt = data[index : index + length].decode("utf8") + except UnicodeDecodeError: + txt = data[index : index + length].decode("iso8859-1") index += length - 1 # one more is done at the end self.insertPlainText(txt)