2 ms·
Lots of good advice, but watch out for Unicode. IIRC, you can have illegal surrogate pairs in NTFS filenames (which are a kind of naive UTF-16), which renders t
by wrs 16y ago
Lots of good advice, but watch out for Unicode. IIRC, you can have illegal surrogate pairs in NTFS filenames (which are a kind of naive UTF-16), which renders them unconvertible to UTF-8. Certainly an edge case, but that's where bugs come from...
(BTW, what really shocked me about this was that it means some file paths can't be turned into file: URLs! I had assumed you could always do that.)