I was tring to write a customized script to read data from API and decode in splunk , but got below error
when decoding content with "gb2312",
I tried with a very simple script like below and could reproduce the issue in splunk in Mac Os
./splunk cmd python3 -c "print(b'\xce\xd2'.decode('gb2312'))"
BTW: same script works in splunk in win10