Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Will java Support Malayalam Unicode?

829578Jan 7 2011 — edited Jan 11 2011
Hi,

I m creating a program for displaying malayalam unicode.. but the out put shows as a special character


the program is as follows


/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

package vps;

import javax.swing.JOptionPane;

public class UnicodeChars {
public static void main(String[] argv) {
//+
StringBuffer b = new StringBuffer();
for (char c = 'a'; c < 'd'; c++) {
b.append(c);
}

b.append('\u0973'); /// Malayalam unicode

for (int i = 0; i < b.length(); i++) {
System.out.println("Character #" + i + " is " + b.charAt(i));
}
System.out.println("Accumulated characters are " + b);
JOptionPane.showMessageDialog(null, b);

}
}


// pls reply
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 8 2011
Added on Jan 7 2011
5 comments
790 views