cmcpasserby / MayaCharm

Maya integration for PyCharm.
MIT License
177 stars 44 forks source link

'utf-8' codec can't decode byte 0xbc #71

Closed OtakuSquirrel closed 7 months ago

OtakuSquirrel commented 10 months ago

These codes run well:

x = 3
rows = 2
columns = 2
quotient, remainder = divmod(x - 1, columns)

But an error occurs when they are in a function:

def find_position(x, columns):
    quotient, remainder = divmod(x - 1, columns)
    return quotient, remainder

The error says:

'utf-8' codec can't decode byte 0xbc in position 68: invalid start byte

Things go well in maya native code editor.

OtakuSquirrel commented 7 months ago

It's a windows bug and happens on default settings on non English version windows such as Chinese windows system. Get into the setting - manage language settings - modify system language settings and change it into English(US), check Using UTF-8 will solve the problem. image