Join Nostr
2026-09-11 01:50:39 UTC

niconiconi on Nostr: How to decode a filesystem file name with scrambled encoding in Python 3. The trick ...

How to decode a filesystem file name with scrambled encoding in Python 3. The trick is `os.listdir("./")` returns a "cooked" Unicode string representation which may damage the string further, but `os.listdir(b"./")` returns a "raw" byte representation. #python