Hacker News new | ask | show | jobs
by chuckadams 984 days ago
Clearly the author already knows this, but it highlights the importance of always normalizing your input, and consistently using the same form instead of relying on the OS defaults.
2 comments

The larger point is probably that search and comparison are inherently hard as what humans understand as equivalent isn't the same for the machine. Next stop will be upper case and lower case. Then different transcriptions of the same words in CJK.
Also, never trust user input. File names are user inputs. You can execute XSS attacks via filenames on an unsecured site.