diff --git a/test_ltc_serial.py b/test_ltc_serial.py index 464a52b..d1b84bf 100644 --- a/test_ltc_serial.py +++ b/test_ltc_serial.py @@ -1,3 +1,8 @@ +# -*- coding: utf-8 -*- +import sys +if hasattr(sys.stdout, "reconfigure"): + sys.stdout.reconfigure(encoding='utf-8') + import serial import re