Searching invalid or special characters in file names
Question / Problem
How do I search for invalid file names using Treesize?
Answer / Solution
Open the Treesize File Search, enable only the "Advanced Search", and define a filter on the right for "Name matches Regular Expression" and one of these patterns:
[^[:print:]] if you want to treat all non-ASCII characters as invalid (which would e.g. also treat German umlauts as invalid)
[^\P{C}] if you want to treat all non-printable Unicode characters as invalid
It can also make sense to search for files containing the non-breakable space (Unicode NOBR U+00A0). To find them, use the pattern [\xA0].
To search for specific characters like percent and ampersand use the regular expression [&%]. You can find more examples on searching with regular expressions in the manual.
You can get rid of unwanted characters using the bulk renamer of TreeSize.