-
Notifications
You must be signed in to change notification settings - Fork 379
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
U2conv.py on Win fails if volume names have non-ASCII chars #95
Comments
Somehow Can you open a cmd window and run |
I suspect a volume name has an accented character. Although these are in the range 128-255, some in that range get utf8 encoded. |
Thanks ! Solved
Solved |
Makes sense, mu is 0xE6 in the French extended character set. So the volume name is reported in pure ASCII but is being interpreted in Python as utf8 encoded, and then it is an illegal sequence. So it is a bug, since the extended character set is allowed in Windows volume names. |
Well, not pure ASCII as that would only have from 0..127, but in the Windows codepage for French which is definitely not UTF-8! It's a pain because the upload tool is itself from Microsoft(!!!) and they mixed up codepages and utf-8. If SO is correct, WMIC uses the codepage for piped outputs but changes to Unicode if redirected to a file. |
Oh, and thanks @al1fch for following up. Now that I know how to repro on Windows, I can try and find a solution. Powershell, maybe, as I think that's always unicode... |
Hi
No problem with Ubuntu, works great !! Thanks !!
On Windows10 I got u2conv.py error when i try to flash Pico Py board
Windows 10 French
Arduino IDE 1.8.13
Raspberry Pi Pico core version 1.0.1
Same error with Fade or any other example code
Error message :
Best Regards
The text was updated successfully, but these errors were encountered: