title: Handle French Characters in Java
body: <p>I Have a Page where I search for a term and it is displaying perfect. Whatever character type it is.</p>
  
  <p>Now when I have few checkboxes in JSP and I check it and submit. In these checkboxes I have one box name like <code>ABC Farmacéutica Corporation</code>. </p>
  
  <p>When I click on submit button, I am calling a function and will set all parameters to a form and will submit that form. (I tested putting alert for the special character display before submit and it is displaying good).</p>
  
  <p>Now, coming to the Java end, I use Springs Frame work. When I print the term in controller, then it is displayed like <code>ABC FarmacÃ©utica Corporation</code>.</p>
  
  <p>Please help...
  Thanks in advance.</p>
  
  <p><strong>EDIT :</strong></p>
  
  <p>Please try this sample Example</p>
  
  <pre><code>import java.net.*;
  class sample{
      public static void main(String[] args){
          try{
              String aaa = "ABC Farmacéutica Corporation";
              String bbb = "ABC FarmacÃ©utica Corporation";
  
              aaa = URLEncoder.encode(aaa, "UTF-8");
              bbb = URLDecoder.decode(bbb, "UTF-8");
  
              System.out.println("aaa   "+aaa);
              System.out.println("bbb   "+bbb);
  
          }catch(Exception e){
              System.out.println(e);      
          }
      }
  }
  </code></pre>
  
  <p>I am getting output as,</p>
  
  <pre><code>aaa   PiSA+Farmac%C3%A9utica+Mexicana+Corporativo
  bbb   PiSA Farmac├⌐utica Mexicana Corporativo
  </code></pre>
  
  <p>Try to print the <code>string aaa</code> as it is.</p>