Using UTF-8 encoding in a Python script fails for Chinese characters.
Trying to use the Script Lookup plugin with a Python script to populate custom incident attributes in the Enforce Console Incident Snapshot.
The script works fine except when the input values are Chinese or other multi-byte Unicode characters in which case the script returns garbled characters and not what is expected.
This is by design behavior as the script plugin is dependent on the OS encoding - Windows uses Windows 1252.
In Linux environment the lookup script would work as Linux encoding is UTF-8.