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

Inconsistencies in charset names

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 6
    • core-libs
    • Cause Known
    • x86
    • windows_2000

      FULL PRODUCT VERSION :
      JDK 1.6.0_01

      ADDITIONAL OS VERSION INFORMATION :
      Windows 2000 [Version 5.0.2195]

      A DESCRIPTION OF THE PROBLEM :
      There are a couple of anomalies in the list produced by java.nio.charset.Charset.availableCharsets().

      See http://mindprod.com/jgloss/encoding.html for source.

      1. The encodings x-UTF-16LE-BOM, X-UTF-32BE-BOM,
      X-UTF-32LE-BOM exist but not x-UTF-16BE-BOM.

      the x- is lower case sometimes and uppercas others x-UTF-16LE-BOM vs X-UTF-32LE-BOM


      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      view page http://mindprod.com/jgloss/encoding.html
      which will run an applet to display Charset.availableCharsets().



      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      the presence of x-UTF-16BE-BOM.. All four spelled consistently.

      ACTUAL -
      missing x-UTF-16BE-BOM. Some x- some X-

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      http://mindprod.com/jgloss/encoding.html

      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      use different encoding names.

            sherman Xueming Shen
            ryeung Roger Yeung (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: