Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8289545

Incorrect currency symbol for Indian Rupee (INR)

XMLWordPrintable

    • x86_64
    • linux_ubuntu

      A DESCRIPTION OF THE PROBLEM :
      The currency symbol returned for the hi_IN locale for the INR currency returns the symbol for the Nepalese Rupee (रू, unicode: U+0930U+0942, currency code: NPR) instead of the currency symbol for the Indian Rupee (₹, unicode: U+20B9, currency code: INR)

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Create a Currency object for the INR currency
      Create a locale with Hindi as the language and India as the country
      Attempt to get the symbol for the INR currency using the Hindi India locale


      ---------- BEGIN SOURCE ----------
      Currency indianRupeeCurrency = Currency.getInstance("INR");
      Locale hindiIndiaLocale = new Locale("hi", "IN");
      String indianRupeeSymbol = indianRupeeCurrency.getSymbol(hindiIndiaLocale);
      assertEquals("₹", indianRupeeSymbol);
      ---------- END SOURCE ----------

            naoto Naoto Sato
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: