From 41a8fc740d7a7f868ccf2292feaff20d3e75b63c Mon Sep 17 00:00:00 2001 From: Bastian Schroll Date: Thu, 24 Oct 2019 13:29:16 +0200 Subject: [PATCH] add encoding for testdata reader --- bw_client.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bw_client.py b/bw_client.py index 651132a..7d555c6 100644 --- a/bw_client.py +++ b/bw_client.py @@ -48,7 +48,6 @@ from boswatch.decoder.decoder import Decoder from boswatch.utils import header from boswatch.utils import misc - header.logoToLog() header.infoToLog() @@ -144,7 +143,7 @@ try: else: logging.warning("STARTING TESTMODE!") logging.debug("reading testdata from file") - testFile = open("test/testdata.list", "r") + testFile = open("test/testdata.list", mode="r", encoding="utf-8") for testData in testFile: if (len(testData.rstrip(' \t\n\r')) > 1) and ("#" not in testData[0]): logging.info("Testdata: %s", testData.rstrip(' \t\n\r'))