title: How to get proper special character from string in java?
body: <ol>
  <li><p>I am setting a special character in DataModel. <br>
  My DataModel <br></p>
  
  <pre><code>public class LaunchModel implements Serializable {
  
      private List&lt;LaunchModel&gt; testquestionList;
      public LaunchModel() {
      testquestionList=new ArrayList&lt;LaunchModel&gt;();
      }
      //GETTER AND SETTER
  }
  </code></pre>
  
  <p>My controller method..</p>
  
  <pre><code>private void setdefaultValues() {
  
      LaunchModel temp=new LaunchModel();
      List&lt;LaunchModel&gt; tempList=new ArrayList&lt;LaunchModel&gt;();
      temp.setQuestion("ΔLMN and ΔXYZ");
      tempList.add(temp);
      this.launchModel.setTestquestionList(tempList);
  }
  </code></pre>
  
  <p>My JSP page..</p></li>
  </ol>
  
  
      
      
      
  
  <pre><code>&lt;h:form id="addAssessmentFormId" enctype="multipart/form-data"&gt;
      &lt;t:div id="main" forceId="true"&gt;
          &lt;t:dataList id="questionList" var="question"
              value="#{launchPlayer.launchModel.testquestionList}" rowIndexVar="index"
              layout="unorderedList" forceId="true"&gt;
  
              &lt;t:div&gt;
              &lt;h:outputText id="que" value="#{question.question}" /&gt;
                  &lt;h:inputTextarea id="que" value="#{question.question}" /&gt;
              &lt;/t:div&gt;
          &lt;/t:dataList&gt;
          &lt;t:div style="text-align:center;"&gt;
              &lt;h:commandButton value="save" action="#{launchPlayer.testsaveAssessment}"&gt;&lt;/h:commandButton&gt;
          &lt;/t:div&gt;
      &lt;/t:div&gt;
  
  
  &lt;/h:form&gt;
  </code></pre>
  
  <p>when it display that time it displays correct special character but when click on save button that time it change the value of String in junk character How it happens I dnt get it.
  How to solve this problem.</p>