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

Thai currency format wrong

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.2.0
    • 1.1.6
    • core-libs
    • 1.2beta4
    • x86
    • windows_nt
    • Not verified



      Name: bb33257 Date: 05/06/98


      I used the following JDK 1.1.6 code segment on my US English Windows NT 4
      to display the monetary amount 123.45 using Thai locale:

           Locale loc = new Locale( "th", "TH" );
           NumberFormat fmt = NumberFormat.getCurrencyInstance( loc );
           System.out.println( fmt.format( 123.45 ) );

      The output is:
           123.45 ??? (where I suppose ??? are 3 Thai characters)

      But in the IBM manual National Language Design Guide (NLDG) volume 2, the
      same amount is listed as:
           x123.45 (where x is the Thai baht character)

      * * *

      123.45 ??? should be 123.45 \u0e1a\u0e32\u0e17 (baht in Thai) because Alexis run his Java code without Thai unicode font. All Thai characters are mapped to unknown character (?). This currency format is used in some Thai applications only.

      Thai currency format on most Thai OS and Thai applications is x 123.45. (where x is the Thai baht symbol \u0e3f).
      I think we should change Thai currency format to \u0e3f 123.45 in the next release of JDK.

      ======================================================================

            rgillamsunw Richard Gillam (Inactive)
            bcbeck Brian Beck (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: