Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Config export encoding mismatch blocking import #728

Open
todd2982 opened this issue Jan 5, 2025 · 1 comment
Open

[BUG] Config export encoding mismatch blocking import #728

todd2982 opened this issue Jan 5, 2025 · 1 comment

Comments

@todd2982
Copy link

todd2982 commented Jan 5, 2025

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

@todd2982
Copy link
Author

Problem still exists in Meshtastic module version 2.5.10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant