When running Maya, some alarms will be generated, including some chinese-encoded characters. It encoded by gb2312 like this:
'\xed\xce\xf3: line 1: RuntimeError: file <maya console> line 1: \xd4\xda MAYA_PLUG_IN_PATH \xc9\xcf\xd5\xd2\xb2\xbb\xb5\xbd\xb2\xe5\xbc
when writing these warnings to file with writeWarning( ... ), it can not dump to json format.
maybe open file with specified encoding can fixs this bug:
with open(filename,'w',encoding='utf-8') as f_obj:
Last,I hope the author can consider the issue! thanks!
When running Maya, some alarms will be generated, including some chinese-encoded characters. It encoded by gb2312 like this:
when writing these warnings to file with writeWarning( ... ), it can not dump to json format.
maybe open file with specified encoding can fixs this bug:
Last,I hope the author can consider the issue! thanks!