How do i escape invalid characters in filenames? I ask this question once before and wrote up a class with the solution. Now i would like to extend it. My site will be able to detect what OS the user is on. So base on that i either 1) Want to escape based on the FS/OS the user is on or 2) Escape it so it works on all filesystems.
What characters may be valid on windows 7 or linux (i am unsure what my current linux FS is set to) and invalid on XP or valid on windows or mac and not on linux?