Skip to content

UnicodeError with os.listdir using nightly builds #10538

Answered by dlech
OlafM2015 asked this question in RP2040 / Pico
Discussion options

You must be logged in to vote

I'm guessing that when the file was created, a character encoding other than UTF-8 was used for the file name. MicroPython now checks that all strings are valid UTF-8. So if there is a way you can rename the file using UTF-8, that should fix the problem.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@OlafM2015
Comment options

@jimmo
Comment options

Answer selected by OlafM2015
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants