hindi unicode works but tamil does not ??
- From: TaxicabNumber@xxxxxxxxx (drdoubt)
- Date: 28 Apr 2005 22:22:11 -0700
Hello,
I am trying to print some Tamil characters but does work though Hindi
characters are being printed. I have fonts for both the languages.
Plus I just want to know how java picks up the fonts, does it have its
own fonts. Below is the program I have written.
import javax.swing.*;
public class UnicodeTest extends JFrame
{
private String str;
private JTextField text=null;
public UnicodeTest()
{
//str="\u0932\u0947\u0915\u0930"; // Hindi works
str="\u0B85\u0B87\u0B88"; // Tamil does not work
text=new JTextField(10);
add(text);
setSize(100,100);
setVisible(true);
}
public static void main(String[] args)
{
UnicodeTest obj=new UnicodeTest();
obj.print();
}
private void print()
{
text.setText(str);
}
}
regards,
vijay.
.
- Follow-Ups:
- Re: hindi unicode works but tamil does not ??
- From: Roland
- Re: hindi unicode works but tamil does not ??
- Prev by Date: Re: Java StreamTokenizer
- Next by Date: instantiate class from string
- Previous by thread: uploading files..
- Next by thread: Re: hindi unicode works but tamil does not ??
- Index(es):
Relevant Pages
|