Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encode bugs #9

Open
shiqinfeng1 opened this issue Jul 15, 2019 · 1 comment
Open

Encode bugs #9

shiqinfeng1 opened this issue Jul 15, 2019 · 1 comment

Comments

@shiqinfeng1
Copy link

shiqinfeng1 commented Jul 15, 2019

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!

@shiqinfeng1
Copy link
Author

By the way, in function getExternalFiles(... ) of Maya, 'prjPath' name may not be "untitled". It maybe chinese-encoded characters: "无标题"。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant