title: Store Arabic in String and insert it into database using Java
body: <p>I am trying to pass Arabic String into Function that store it into a database but the String's Chars is converted into '?' </p>
  
  <p>as example </p>
  
  <pre><code>String str = new String();
  str = "عشب";
  System.out.print(str);
  </code></pre>
  
  <p>the output will be :</p>
  
  <pre><code>"???"
  </code></pre>
  
  <p>and it is stored like this in the database.</p>
  
  <p>and if i insert into database directly it works well.</p>
  
  <p><a href="https://i.stack.imgur.com/yLvxW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yLvxW.png" alt="ScreenShot of the code and result"></a></p>