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

Charset.name does not return preferred MIME name when gb2312

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 5.0
    • 1.4.1, 1.4.2_01
    • core-libs
    • b30
    • x86, sparc
    • solaris_9, windows_2000

      java.nio.charset.Charset cs = java.nio.charset.Charset.forName("GB2312");
      java.lang.String name = cs.name();

      cs.name() return "x-EUC-CN", it's not preferred MIME name, but "GB2312" is preferred MIME name. name() method should return "GB2312" in this case.

            ilittlesunw Ian Little (Inactive)
            keoono Keiichi Oono (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: