Mostrar idioma hindi en consola usando Java
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());
Expedienteabc.txt
contiene
\u0905\u092d\u0940 \u0938\u092e\u092f \u0939\u0948 \u091c\u0928\u0924\u093e \u091c\u094b \u091a\u093e\u0939\u0924\u0940 \u0939\u0948 \u092
Quiero mostrar en idioma hindi en la consola utilizando Java.
si simplemente imprimo como esta String str = "\ u0905 \ u092d \ u0940 \ u0938 \ u092e \ u092f \ u0939 \ u091c \ u09c \ u09c \ u09c \ u0924 \ u0924 \ u0924 \ u09c \ u09c \ u09c \ u09c \ u09c \ u09c \ u09c \ u09c \ u09c \ u09c \ 's \ u0948 \ u092 ";
System.out.println (str);
entonces funciona bien, pero cuando intento leer un archivo no funciona.
ayúdame.