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
Comment bello for your Query and Feedback :)
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:{
public static void main()
{
char c;
}
for(c=2309;c<2360;c++)
{
System.out.print(" "+c);
}System.out.print();
}
Comment bello for your Query and Feedback :)
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?
ReplyDeleteHere is solution for this problem
ReplyDelete1) 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
can we read or manipulate hindi stings via any king of file handling in java using Unicode or UTF...?
ReplyDeleteI used the UTF-8 to save file but it still printing ?.
ReplyDeleteHi, 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