I am trying to convert the Devanagari Unicode to its character in Java and trying to display on CMD but it gives me a ?
character.
Here is my code:
public class ConvertUnicode
{
public static void main(String args[])
{
int a = 0x0909;
char c = (char)a;
System.out.println(" "+c);
}
}
Output of above code is a ?
character.