diff --git a/tools/idf_monitor.py b/tools/idf_monitor.py index 19c36f1315..670cd5f0e9 100755 --- a/tools/idf_monitor.py +++ b/tools/idf_monitor.py @@ -1041,6 +1041,9 @@ if os.name == 'nt': # Also possible for Windows to throw an OSError error if the data is invalid for the console # (garbage bytes, etc) pass + except UnicodeDecodeError: + # In case of double byte Unicode characters display '?' + self.output.write('?') def write(self, data): if isinstance(data, bytes):