A very strange Error: partitions.bin

Hi:
when I compile my esp32 arduino project in platform io,
The console tells the following error message:
How should I fix this?

Traceback (most recent call last):
File “C:\Users\Administrator.platformio\packages\framework-arduinoespressif32\tools\gen_esp32part.py”, line 593, in
main()
File “C:\Users\Administrator.platformio\packages\framework-arduinoespressif32\tools\gen_esp32part.py”, line 546, in main
table, input_is_binary = PartitionTable.from_file(args.input)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\Administrator.platformio\packages\framework-arduinoespressif32\tools\gen_esp32part.py”, line 145, in from_file
data = data.decode()
^^^^^^^^^^^^^
UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xe0 in position 6: invalid continuation byte

What’s your platformio.ini? This looks like you have non-utf8 characters in your, possibly custom, partition table.

Hi Max thanks for the reply!

After hours of trying.
I tried to reinstall platformio and all its attachments. When I reinstalled the latest platform io core, it compiled successfully again!

I think it might be because I haven’t updated platform io for too long…