diff --git a/opcuaserv/yamlreader.py b/opcuaserv/yamlreader.py index fa5a4560ee382c38231126ff26c2c9b67a2fc1af..7582906437565653f280b795cba295106e2af57a 100644 --- a/opcuaserv/yamlreader.py +++ b/opcuaserv/yamlreader.py @@ -184,7 +184,7 @@ class yamlreader(yamlconfig): elif dtype=="string": cnt=int(len(data)/width) # data2=[(bytearray(data[i*width:(i+1)*width]).decode("utf-8")) for i in range(cnt)] - data2=[bytearray(data)[i*width:(i+1)*width].decode("utf-8") for i in range(cnt)] + data2=[bytearray(data)[i*width:(i+1)*width].decode("utf-8",errors='ignore') for i in range(cnt)] else: logging.warn("OPCset unsupported type"); return;