I need to check if a JAVA string which we send to commzgate(3rd party) as SMS but our SMS fails because our string is containing some invalid/non-readable characters which I need to check first. Basically i need to put a regular expression check in java to validate if my string contains following characters or not :-
€ [ \ ] ^ { | } ~
Any suggestions! Moreover when I try to put these characters in my java file, it does not save and alerts for non-utf8 character message in eclipse, so everytime i have to remove € and save. Is that so my validation is not complete. Thanks