Following is the simple program with which you can print the hindi language characters using JAVA programming language.
package printhindi;public class Hindi { public static void main(String args[]) {
char c; for (c = 2309; c < 2360; c++ System.out.print(” ” + c); } }
|
The simple logic behind is that we are getting these characters with the help of their ASCII values. The ASCII value for first hindi character is 2309 and for the last is 2360.
One important thing, first time you run this program, it will show QUESTION MARKS in the console/output. Then you need to do the save the file in UDF-8 or UDF-16 format. You can do this like this.
Right click on the java file. Go to properties. Then in Resource tab, in Text File Encoding, click on the Others and select either UTF-8 or UTF-16 from the drop down list.
Following screenshots will help you during the process.





thank u very much
Sir How to download Printhindi package
I am not sure about the package that you mentioned. Is it supported in JAVA or you are talking about Python?
Please clarify.
Thanks.
Are you talking about the printhindi package?
Thanks,
Milind
thank you very much.. it helped me a lot
Glad I could help! 🙂
Glad that I could help.
Thanks,
Milind
Is there a similar package for Konkani?
Unfortunately, I am not sure about that.
Please explore and let us know if you find anything.
Appreciate it.
Thanks,
Milind