Search code examples
javaunicodecurrencysymbols

How can I get Bangladeshi taka symbol "tk" or Unicode Character " ৳ " in java


I was doing like

tvCartTotalAmount.setText("tk "+String.format("%.2f",totalAmount)+"/-");

the output was

tk 315/-

I want to show like

৳ 315/-

How can I do that?


Solution

  • To use Bangladeshi taka symbol in Java

    tvCartTotalAmount.setText("\u09F3"+" Data");
    

    The symbol will look like this

    " ৳ "

    This link will help you further...