1. Type हिन्दी in Java…
Hey Friends,
you know every character has its Unicode value.
Before Unicode, there were many language
standards:
• ASCII (American Standard Code for Information
Interchange) for the United States.
• ISO 8859-1 for Western European Language.
• KOI-8 for Russian.
• GB18030 and BIG-5 for chinese, and so on.
2. In unicode, character holds 2 byte, so java also uses
2 byte for characters.
lowest value:u0000
highest value:uFFFF
Now lets talk about Hindi language. We have
unicode value for all the characters in hindi
language.
You can http://unicode.org/charts/PDF/U0900.pdf
4. You can check unicode value under every character.
For exp. for क , unicode value is “u0915”.
Now, just write unicode for the character you want.
public class HindiTypingDemo {
public static void main(String[] args) {
System.out.println(“u0939u093Fu0928u094D
u0926u0940”);
}
}
Output is : हिन्दी
5. You can try this with other language too, you
just need unicode value of characters.