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

Character converters for Cp930, Cp933, Cp935, Cp937, Cp939 can not work.

XMLWordPrintable

      When you run the attached class with an input encoding name of Cp930, Cp933, Cp935, Cp937, Cp939, you will get the following exception
      Exception in thread "main" java.lang.InternalError: this.getMaxBytesPerChar returned bad value
              at sun.io.CharToByteConverter.convertAll(CharToByteConverter.java:221)
              at TestEncoding.test(TestEncoding.java:42)
              at TestEncoding.main(TestEncoding.java:25)

      The attached java file has only normal operation to convert a character one by one.

            duke J. Duke
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: