RF修改乱码问题

1.找到文件unic.py

目录:D:\Program Files\python2\Lib\site-packages\robot\utils

2.在文件中增加以下内容:

if isinstance(item, (list, dict,tuple)): 
            try:
                item= json.dumps(item, ensure_ascii=False, encoding='utf-8') 
            except UnicodeDecodeError: 
                try:
                    item= json.dumps(item, ensure_ascii=False, encoding='utf-8')
                except:
                    pass 
            except:
                pass

3.重启RF

 

posted @ 2020-10-16 10:19  my_testing_road  阅读(230)  评论(0编辑  收藏  举报