How to remove special character in the string

This could be a possbile duplicate. Still im not able to find a solution for it.Yes i tried with regexp but is there any other way to solve it?

String s="This is a â¦sample ⦠Java class to show the issueâ¨\nHow to solve it?";

        try {
        System.out.print("ANSWER="+URLDecoder.decode(s, "UTF-8"));  ;
        } catch (UnsupportedEncodingException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }

How can i fix this issue? Can some one help Thanks in advance

The console output

Invalid layout of java.lang.String at value
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (javaClasses.cpp:136), pid=17620, tid=14220
#  fatal error: Invalid layout of preloaded class
#
# JRE version:  (7.0_79-b15) (build )
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.79-b02 mixed mode windows-amd64 compressed oops)
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows


ANSWERS:


Try this

    String yourString= "This is a â¦sample ⦠Java class to show the issueâ¨\nHow to solve it?";
        Pattern myPattern = Pattern.compile("[^a-zA-Z0-9]");
        Matcher myMatcher = myPattern.matcher(yourString);
          while(myMatcher.find())
          {
              String temp= myMatcher.group();
              yourString=yourString.replaceAll("\\"+temp, " ");
          }
System.out.println(yourString);


 MORE:


 ? Open ucanaccess/jackcess database in wildfly using iso-8859-1
 ? Charset UTF-8 (Doesn't work)
 ? I am trying to read in .properties files with Chinese characters encoded in utf-8
 ? php - characters instead of html
 ? encoding and decoding a string to binary or hex in python 3.5
 ? Characters appear as gibberish in mysql (Hebrew)
 ? How can I find non-ASCII characters in MySQL?
 ? PHP: Convert any string to UTF-8 without knowing the original character set, or at least try
 ? Spring MVC UTF-8 Encoding
 ? How to make Unicode charset in cmd.exe by default?