Font squares boxes java problem unicode

To print Assamese Unicode character in Java program follow the following steps-

1. check your JRE Home
2. change directory to C:\Program Files\Java\jdk1.6.0_10\jre\lib (according to default java directory)
generally within each installed JDK version there is a JRE directory. Go to that directory.
another JRE directory is generally in C:\Program Files\JRE.. no need to modify this directory
3. wherever the JRE, go to that, which one is within JDK
4. there you find the following files


There may be some less number of file, no problem, 3 will get minimum 3 files among the above listed files with extension .src
5. copy and past it in the same directory
6. rename the newly pasted file as
7. open it with notepade++ (or any other editor) and add the following 3 lines

##Added a line at the top of the 'Component Font Mappings':
##Modifed the UTF-8 Search Sequence line to include Bengali:
##Added a line at the top of the 'Font File Names':

##if after including the above 3 line also the system is not working then add the following line in 'search sequence' area

####now execute the java programm. It will work

check the simple following program

import javax.swing.JOptionPane;
public class asm
public static void main (String [] args)
String asm = "\u09ae\u0987 \u0985\u09b8\u09aE\u09c0\u09df\u09be \u09b6\u09ac\u09cd\u09a6";
JOptionPane.showMessageDialog(null, asm);

No comments:

Post a Comment

Do pass your comments here.