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

NumberFormat: uses Yen sign which cannot be converted to EUCJIS or SJIS

    XMLWordPrintable

Details

    • b01
    • x86
    • solaris_9
    • Not verified

    Description


      takeshi.asano@Japan 1997-03-13

      Object returned by NumberFormat.getCurrencyFormat() in locale ja
      puts leading Yen sign when its format() method is used.
      However, the Yen sign used seems to be \u00a5, which is converted
      to replacement (default) character '?' by java.io converters
      such as EUCJIS or SJIS. So user doesn't see the Yen sign correclty.

      asano@soda[663]$ java T_NumberFormat
      number: 20
      number: 45,890
      number: 22.33
      number: 13,022.33
      currency: ?20.00
      currency: ?45,890.00
      currency: ?22.33
      currency: ?13,022.33

      I attached program "number.java" for reproduction.

      Attachments

        Activity

          People

            bcbeck Brian Beck (Inactive)
            taasano Takeshi Asano (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: