Open Timofei302 opened 5 months ago
When trying to compile a watchface file for Redmi Watch 2 lite created in WatchfaceEditor, the script crashed with the error JSONDecodeError("Unexpected UTF-8 BOM (decode using utf-8-sig).
JSONDecodeError("Unexpected UTF-8 BOM (decode using utf-8-sig)
The error was solved by adding .encode().decode('utf-8-sig') to the line https://github.com/Mino260806/miwtool/blob/557bf03bbd6427b62b42132b7cc031aa52ad95bb/wfeditor/parser.py#L31
.encode().decode('utf-8-sig')
When trying to compile a watchface file for Redmi Watch 2 lite created in WatchfaceEditor, the script crashed with the error
JSONDecodeError("Unexpected UTF-8 BOM (decode using utf-8-sig)
.The error was solved by adding
.encode().decode('utf-8-sig')
to the line https://github.com/Mino260806/miwtool/blob/557bf03bbd6427b62b42132b7cc031aa52ad95bb/wfeditor/parser.py#L31