Thursday, 19 January 2012


This is code is to Print Hind Language Character on screen.
This code is Shared by Mr. Deepak Gupta.
It is made using loop, the loop start at 2309 to 2362 which includes all Hindi Character.
It use Unicode encoding which includes all human readable language, if you increase the number you will see other character.

Code:
// Java Program to Print Hindi Language Character
public class k_kha
{
public static void main()
    {
    char c;
    }
for(c=2309;c<2360;c++)
{
  System.out.print(" "+c);
}System.out.print();
}

Sample Output:

Comment bello for your Query and Feedback :)

Related Posts :



5 comments:

  1. I used this code, but i didnt get the ouput. I got question marks instead of hindi characters. Is there any pre-steps need to be taken to get the output?

    ReplyDelete
  2. Here is solution for this problem
    1) You can save your file in UTF-8 or UTF-16 and you will start see characters
    2) even if you are not able to then you can copy some hindi char and put as string and try to print syso it will ask you to save your file as UTF-8 and onwards your program will start display hindi characters instead of ???? marks

    ReplyDelete
  3. can we read or manipulate hindi stings via any king of file handling in java using Unicode or UTF...?

    ReplyDelete
  4. I used the UTF-8 to save file but it still printing ?.

    ReplyDelete
  5. Hi, i need to convert pdf file that contain hindi words to the text file . is it posible? please mail me your email id will send you pdf file that want to convert.

    ReplyDelete