pytest框架 接口写入数据后,中文在打印中乱码,在postman写入时正常,pycharm中编码均为uft-8,求解决方案

pytest框架 接口写入数据后,中文在打印中乱码,在postman写入时正常,pycharm中编码均为uft-8,求解决方案

img

s1='\u6211\u559c\u6b22\u4f60'

#转为utf-8(明文)
print(s1.encode('utf8').decode('unicode_escape'))
#转为utf-8编码
print(s1.encode('utf8').decode('unicode_escape').encode('utf8'))

unicode