can any one temme how to declare rupee symbol unicode in java !!
i found the unicode U+20B9 but to declare it!

03-29-2011, 08:42 AM

pbrockway2

What do you mean "declare" it?

20B9 is just a number (in decimal, 8377). Use it however you want: assign it to a char variable or whatever.

03-29-2011, 08:57 AM

rishu2003

instead of rs i wanna use rupee symbol how can i do it !! i found the unicode !

char half = '\u20B9';
but still i cant get the symbol !

wat shuld i do ?

03-29-2011, 09:15 AM

pbrockway2

Make sure your computer has (and uses) fonts that have a Rupee symbol.

I'm in New Zealand and using a Windows computer: so all I see is a ? when I print that character from a command line application. I would expect other operating systems (like Linux) to have shells that work properly.

But, again, you need to say what "still I can't get the symbol" actually means. For instance, I tried the following code and only saw a question mark after it was compiled and run without error: