in reply to Re^2: Removing Bad Characters from a String
in thread Removing Bad Characters from a String

That's the list for NTFS, in FAT, more characters are banned. On the top of my head, I think the additional ones are \x20 + = [ ] %

I think that control characters (\x00-\x1f but not \x7f IIRC) and backslash (\\) are also banned in filenames, despite that error message not mentioning them.

Replies are listed 'Best First'.
Re^4: Removing Bad Characters from a String
by mrborisguy (Hermit) on May 09, 2005 at 23:01 UTC
    actually, i'm not sure about your assertion that those additional characters are banned in FAT. i'm running on my parents' win 98 machine, which has a FAT filesystem (i first assumed, but then i checked, and it is FAT). i successfully named a file 'a[0] += 7 % 3.txt'. this is also the OS i got my error message from.
    i'd upload a small image as proof, but i'm not really sure how.

      I think you are right. Those extended characters are allowed in windows long filenames (vfat). I think however that DOS 6 does not allow any of them.