diff -r 67a0df6478b3 -r ec2babbd5698 controls/DebugVariablePanel/DebugVariableItem.py --- a/controls/DebugVariablePanel/DebugVariableItem.py Tue Nov 01 14:19:23 2022 +0800 +++ b/controls/DebugVariablePanel/DebugVariableItem.py Tue Nov 01 14:21:16 2022 +0800 @@ -255,7 +255,7 @@ if self.VariableType in ["STRING", "WSTRING"]: # String data value is CRC - num_value = (binascii.crc32(value) & STRING_CRC_MASK) + num_value = (binascii.crc32(value.encode()) & STRING_CRC_MASK) elif self.VariableType in ["TIME", "TOD", "DT", "DATE"]: # Numeric value of time type variables # is represented in seconds