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

RFE: Add method to query encodings available on platform

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.2.0
    • core-libs



      Name: rm29839 Date: 04/06/98


      Currently there is no way to discover at runtime
      what encodings are available when running the jvm.
      This is a request for enhancement that would allow
      you to programmatically query to discover what
      encodings are available. This pertains to the
      character encoding such as the String that
      is part of the constructor for OutputStreamWriter,
      as in:
      public OutputStreamWriter(OutputStream out
        String enc) throws UnsupportedEncodingException

      I realize you can always try a particular
      encoding as a String and wait for the
      UnsupportedEncodingException. However, this does
      nothing for you in case you want to, for example,
      present the user at runtime a list of all available
      encodings.

      Thanks,
      Jon Steelman
      steelman "at" mindspring.com
      (Review ID: 27139)
      ======================================================================

            mr Mark Reinhold
            rmandelsunw Ronan Mandel (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: