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

KOI8_R encoding throws UnsupportedEncodingException when it shouldn't.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • None
    • 1.4.2
    • core-libs

      According to the documentation at:

      http://webwork.sfbay/j2se/1.4.2/docs/guide/intl/encoding.doc.html

      "KOI8_R" encoding is supported by the NIO API. However, the following program shows that an UnsupportedEncodingException gets thrown when trying to obtain a Charset object for that encoding.

      ------------------------------- Cut Here --------------------------------
      import java.nio.charset.*;
      import java.nio.*;

      public class SimpleTest {

          public static void main(String[] args) {
              new SimpleTest();
          }

          public SimpleTest() {
              try {
                  Charset decoder = Charset.forName("KOI8_R");
              } catch (Exception e) {
                  e.printStackTrace();
              }
          }
      }
      ------------------------------- Cut Here --------------------------------

      ###@###.### 2003-03-20

            ilittlesunw Ian Little (Inactive)
            elousunw Edmund Lou (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: