Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I enter unicode characters in eclipse?

I am running eclipse in Linux and while shift+control+U+1+1+1+1 works in other apps (where 1111 are the 4 digits of the unicode character in question) like firefox, it fails in eclipse.

I just want to add some special chars to my Java string.

like image 834
Jose M Vidal Avatar asked Aug 03 '09 15:08

Jose M Vidal


2 Answers

If all else fails, just use a Unicode escape:

String s = "\u1111";

Spares you the hassle of configuring charsets for your source files as well :)

like image 98
Joey Avatar answered Oct 01 '22 19:10

Joey


Make the character in another program and copy it to Eclipse.

like image 30
mcandre Avatar answered Oct 01 '22 18:10

mcandre