title: Display Hindi language in console using Java
body: <pre><code>StringBuffer contents=new StringBuffer();
  BufferedReader input =  new BufferedReader(new FileReader("/home/xyz/abc.txt"));
  String line = null; //not declared within while loop
  while (( line = input.readLine()) != null){
      contents.append(line);
  }
  System.out.println(contents.toString());
  </code></pre>
  
  <p>File <code>abc.txt</code> contains</p>
  
  <pre><code>\u0905\u092d\u0940 \u0938\u092e\u092f \u0939\u0948 \u091c\u0928\u0924\u093e \u091c\u094b \u091a\u093e\u0939\u0924\u0940 \u0939\u0948 \u092
  </code></pre>
  
  <p>I want to dispaly in Hindi language in console using Java.</p>
  
  <p>if i simply print like this 
  String str="\u0905\u092d\u0940 \u0938\u092e\u092f \u0939\u0948 \u091c\u0928\u0924\u093e \u091c\u094b \u091a\u093e\u0939\u0924\u0940 \u0939\u0948 \u092";</p>
  
  <p>System.out.println(str);</p>
  
  <p>then it works fine but when i try to read from a file it doesn't work.</p>
  
  <p>help me out.</p>