Skip to content

[BUG] Config export encoding mismatch blocking import #728

@todd2982

Description

@todd2982

When running --export-config the file generated is using UTF-16 LE encoding, but the --configure option used to import that same file only accepts UTF-8 encoded files.

My environment is python 3.13 running on Windows 11 (not within WSL) using Meshtastic module version 2.5.9.

My current workaround is to use VS Code to save the exported file using the correct UTF8 encoding.

Error during import:

INFO file:ble_interface.py scan line:116 Scanning for BLE devices (takes 10 seconds)...
Connected to radio
Aborting due to: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte

I'm unable to attach an export of the yml file due to github file restrictions. I can send the file directly if requested. I am also adding a link to a Stack Overflow thread that mentions the same issue with Python, but I'm not familiar enough with this module to make the changes myself.

https://stackoverflow.com/questions/3597480/how-to-make-python-3-print-utf8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions