Displaying Tamil Characters in java console(Eclipse)

(Last Updated On: August 11, 2016)

Displaying Tamil characters in Java:

Program:

package in.javadomain;

public class DisplayTamilCharactersInConsole {

	public static void main(String[] args) {
		String amma = "அம்மா ";
		System.out.println("Amma in Tamil : " + amma);
	}

}

If you save the above program in eclipse it will ask like this,

Saving Tamil characters in Eclipse

Save it as UTF-8

Now Run the program to see the below output,

Output:

Amma in Tamil : அம்மா

Displaying tamil characters in Java consolde

Recommended Books:

579 total views, 7 views today

3 comments

  • Aravind

    Excellent!! good job!!

  • Vimal

    Is that can be user interface ? Are should we install Eclipse stuff to have that worked, So I doubt it require more Tamil words to encrypted in database to work right as end level? looking forward …..

    • Naveen

      You can make as user interface but not only with java, you can display the tamil characters in jsp/html pages but you need to convert to utf-8(to display tamil characters) in java only. You do not need to encrypt the tamil words in the database, you can simply install tamil fonts and converting to utf-8 make sense.

Leave a Reply

Your email address will not be published. Required fields are marked *