title: how to read and write in arabic in eclipse
body: <p>I have written this code in eclipse to get some arabic words and then print them </p>
  
  <pre><code>    public class getString {          
          public static void main(String[] args) throws Exception {  
              PrintStream out = new PrintStream(System.out, true, "UTF-8");
              Reader r = new InputStreamReader(System.in, "UTF-8"); 
              char[] str ;
              str= new char[10];
              r.read(str);
              out.println(str);
  
      }
      }
  </code></pre>
  
  <p>but the output is this:</p>
  
  <p>شیرین</p>
  
  <p>Ø´ÛŒØ±ÛŒÙ†</p>
  
  <p>any help??</p>
  
  <p>thanks in advance for your attention</p>