artbycrunk / vscode-maya

A Visual Studio Code extension with support for coding for Maya.
MIT License
45 stars 11 forks source link

An unicode error on new version of maya,(like 2024.1) #41

Open lovejunjie1 opened 1 year ago

lovejunjie1 commented 1 year ago

I am a long time user since maya 2018.

for now, I changed my maya, update to 2024 version 1.

software lang environment was english. windows unicode is GB2312/GBK my code was useing UTF-8

I just type alt+m, send those UTF-8 code to maya. there was appeared.

Error: line 1: UnicodeDecodeError: file line 1: 'gbk' codec can't decode byte 0xaa in position 1026: illegal multibyte sequence

I need your help. mayabe there was some things I have been missed. you can ask any thing what I can do.

cheers.

lovejunjie1 commented 11 months ago
#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
Author: figo
Date: 2023-12-18 17:29:14
LastEditTime: 2023-12-18 17:29:40
LastEditors: figo - uz
Description: 这是一个测试文件
FilePath: \ygpipe39\figoBrownser\bin\test\gg.py
copyright: figo software 2020-2021
'''

# 一个中文的测试注释
print ('你好世界')

those are the tesing code.please , I need your help