views:

577

answers:

2

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.

+3  A: 

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 :)

Joey
+3  A: 

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

mcandre