前置脚本python传的body一直报编码错误,咋回事

params = {
“name”: “auto_test_xing_01”,
"tenant_id ": tenant_id,
“language”: “af”,
“category_type”: 1,
“content”: “”,
“headerText”: “”,
“footerText”: “foot”,
“mediaName”: “test.jpg”,
“templateMediaId”: templateMediaId11,
“mediaId”: mediaId22,
“mediaType”: “IMAGE”,
“tag_name”:“test”,
“is_close_auto_flow”: 0,
“buttonComponents”: [
{
“customizeType”: “conventional”,
“text”: “button1”,
“type”: “QUICK_REPLY”,
“payload”: “”,
“buttonEvents”: [
{
“event”: “tag”,
“tagName”: “Viber tag”
},
{
“event”: “template”,
“templateId”: 314,
“templateName”: “buttontest22”
}
]
},
{
“customizeType”: “conventional”,
“text”: “button 2”,
“type”: “QUICK_REPLY”,
“payload”: “test text”,
“buttonEvents”: [
{
“event”: “tag”,
“tagName”: “Viber tag”
},
{
“event”: “text”,
“text”: “test text”
}
]
},
{
“customizeType”: “conventional”,
“text”: “button3”,
“type”: “QUICK_REPLY”,
“payload”: “”,
“buttonEvents”: [
{
“event”: “template”,
“templateId”: 313,
“templateName”: “test_8”
}
]
}
]
}

body = json.dumps(params, ensure_ascii=False, separators=(“,”, “:”))

UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xef in position 22: ordinal not in range(128) in at line number 95

报错的意思是这里面包含了不可以用ascii编码的字节序列,可能是某种特殊符号。