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

java.lang.String(byte[] b, String enc) -- supported encodings not documented

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.3.0
    • 1.1.3, 1.1.6, 1.2.0
    • core-libs
    • None
    • kestrel
    • generic, x86, sparc
    • generic, solaris_2.6, windows_95



      Name: rm29839 Date: 10/09/97


      public String(byte bytes[],
                     String enc) throws UnsupportedEncodingException

      Construct a new String by converting the
      specified array of bytes using the specified
      character encoding. The length of the new
      String is a function of the encoding, and
      hence may not be equal to the length of the
      byte array.

      (b)

      Parameters:bytes - The bytes to be converted into characters

      enc - A character-encoding name

      ** WHAT ARE THE EXISTING CHARACTER ENCODING NAMES?
      I'VE BEEN LOOKING FOR THE LAST 8 HOURS TO ACOMPLISH
      WHAT IS TRIVIAL IN ALMOST EVERY OTHER LANGUAGE I HAVE
      ENCOUTERED ... WHICH IS TURNING AN ASCII ARRAY OF BYTES INTO A STRING.

      (c) Throws: UnsupportedEncodingExceptionIf the named encoding is not supported
      company - Set Top Industries , email - ###@###.###
      ======================================================================

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: