Error al compilar marlin 2 para bigtreetech octopus v1.1

UnicodeDecodeError: ‘charmap’ codec can’t decode byte 0x90 in position 79486: character maps to :
File “C:\Users\moha.platformio\penv\lib\site-packages\platformio\builder\main.py”, line 179:
env.SConscript(item, exports=“env”)
File “C:\Users\moha.platformio\packages\tool-scons\scons-local-4.3.0\SCons\Script\SConscript.py”, line 597:
return _SConscript(self.fs, *files, **subst_kw)
File “C:\Users\moha.platformio\packages\tool-scons\scons-local-4.3.0\SCons\Script\SConscript.py”, line 285:
exec(compile(scriptdata, scriptname, ‘exec’), call_stack[-1].globals)
File “C:\Users\moha\Downloads\BIGTREETECH-OCTOPUS-V1.0-master\Firmware\Marlin-bugfix-2.0.9.2.x\buildroot\share\PlatformIO\scripts\common-dependencies.py”, line 253:
compute_build_signature(env)
File “C:\Users\moha\Downloads\BIGTREETECH-OCTOPUS-V1.0-master\Firmware\Marlin-bugfix-2.0.9.2.x\buildroot\share\PlatformIO\scripts\signature.py”, line 83:
defines = extract_defines(header)
File “C:\Users\moha\Downloads\BIGTREETECH-OCTOPUS-V1.0-master\Firmware\Marlin-bugfix-2.0.9.2.x\buildroot\share\PlatformIO\scripts\signature.py”, line 15:
f = open(filepath).read().split("\n")
File “C:\Users\moha.platformio\python3\lib\encodings\cp1252.py”, line 23:
return codecs.charmap_decode(input,self.errors,decoding_table)[0]

The error is thrown in Marlin’s custom script (buildroot\share\PlatformIO\scripts\signature.py), not by a PlatformIO primitive. By the download folder name I assume you are using GitHub - bigtreetech/BIGTREETECH-OCTOPUS-V1.0: This is Octopus open source material, open an issue there.

Their file

is behind what the current version does.

The base problem seems to be that the file it is trying to read contains non-ASCII characters. (Like, arabic.)

You may be able to fix the problem yourself by editing C:\Users\moha\Downloads\BIGTREETECH-OCTOPUS-V1.0-master\Firmware\Marlin-bugfix-2.0.9.2.x\buildroot\share\PlatformIO\scripts\signature.py line 15 to be as in the newer version. (Missing encoding="utf8")