Skip to content

Encode bugs #9

Description

@shiqinfeng1

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions