How to display rupee symbol in my java class? -


if(this.currency.equalsignorecase("₹")) {     r="₹ "+r; } 

i want compare (indian rupee symbol) in java. here trying print currency rupee symbol, instead displaying symbol â?¹.

how overcome problem?

you can try with:

if(this.currency.equals("\u20b9")) {     r="₹ "+r; } 

"\u20b9" java encoding rupee symbol.

more info:


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

spring cloud - How to configure SpringCloud Eureka instance to point to https on non standard port -

javascript - Bootstrap Popover: iOS Safari strange behaviour -