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

Euro symbol not shown in JDK1.1.7A on Win32 platforms

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P1
    • None
    • 1.1.7
    • globalization

    Description

      The Euro sysbol is not displayed when called with it's Unicode number on all the win32 platforms, and additionally cannot be shown at all in an applet's text box on Windows NT

      To reproduce the bug:
      1/ Install the Euro patches onto Windows 95 and NT from the Microsoft website at http://www.microsoft.com/windows/euro.asp
      2/ Install JDK1.1.7 build N (JDK1.1.7A) onto all three win32 platforms
      3/ Compile the short piece of code after these instructions
      4/ Run the compiled code on all three platforms to see the unicode Euro problem
      5/ Run an applet that contains a text box on the Windows NT platform
      6/ In the text box key in ALT 0128 to see the Euro on NT problem. (this should call up the Euro sysmbol, but another character, a space, apppears in it's place)

      // Test: Quick Euro Currency Test.
      import java.lang.String;
      import java.text.NumberFormat;
      import java.util.Locale;
      public class quickeuro {
        public static void main (String[] argv) {
          Locale myLocale = new Locale("ES", "ES", "EURO");
          NumberFormat format = NumberFormat.getCurrencyInstance(myLocale);
          String stringWithEuro = format.format(1.23);
          // The string should have the euro symbol in it.
          System.out.println("European Locale : " + myLocale.toString());
          System.out.println("Formatted Number : " + stringWithEuro);
          System.out.println("Euro Currency Symbol : \u20ac");
        
        }
      }

      james.mcboyle@ireland 1998-10-06

      Attachments

        Issue Links

          Activity

            People

              aliusunw Alan Liu (Inactive)
              duke J. Duke
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: