I'm parsing CSV files, and I might sometime bump into illegal files , like jpeg or pdf and etc...
So when I parse the file content I want to determine if the char is legal (came from keyboard) like a 5 & % ! and etc...
But not chars like this : � ַ and other weird chars that can be found inside images pdfs and other files
I don't want to check mime type of the file and I prefer not to add several third party jars to solve this problem , I want to figure out that the file that is being parsed is valid by looking into its chars
Is the something similar to Character.isLetterOrDigit
that can tell if the char is a char that was typed from keyboard or some weird char like � ַ
*One more thing I need to be able to accept chars of various languages (not only English)
so I want to avoid doing plain char comparing like c <= 32 && c >= 126
and etc...
B.t.w in general I'm looking an answer to problem described in this question CSV file validation with Java