diff --git a/tools/idf_monitor.py b/tools/idf_monitor.py index 127bce9678..4f93dd72e5 100755 --- a/tools/idf_monitor.py +++ b/tools/idf_monitor.py @@ -764,6 +764,9 @@ if os.name == 'nt': # an exception (however, the character is still written to the screen) # Ref https://github.com/espressif/esp-idf/issues/1136 pass + except UnicodeDecodeError: + # In case of double byte Unicode characters display '?' + self.output.write('?') def write(self, data): if isinstance(data, bytes):