I need to check Strings in Java that they only contain allowed characters. I need to do it for several different languages. Each of the languages contains a set of special characters that are added to the national alphabet against the basic English alphabet, e.g. in German you have ü, ö etc. I would need to define Java constants containing these special characters for each of the languages in the form of UTF escape sequences so that I can keep my Java file ASCII encoded.
Is there a way where I can get such constants, e.g. download them somewhere or get them from some library or generate them somehow? Any idea? I know I can find the chars somewhere on the net, find the escape sequence for each of the charaters and put it into my source file. Is there some way how to do it with less effort?