JDK-4914869 : Charset.name does not return preferred MIME name when gb2312
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.nio.charsets
  • Affected Version: 1.4.1,1.4.2_01
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: solaris_9,windows_2000
  • CPU: x86,sparc
  • Submitted: 2003-08-29
  • Updated: 2003-11-23
  • Resolved: 2003-11-23
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
5.0 b30Fixed
Related Reports
Duplicate :  
Description
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.

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: tiger-beta FIXED IN: tiger-beta INTEGRATED IN: tiger-b30 tiger-beta
14-06-2004

EVALUATION This a reasonable request. It seems there was an oversight when originally assigning the canonical name for the Sun bundled "EUC-CN" charset. GB2312 is defined within the IANA registry as a CCS/CES combination so it is more appropriate to use "GB2312" as the canonical name as opposed to the current one "x-EUC-CN" which implies that the charset is not recognized or registered by IANA. Will address for 1.5 beta. x-EUC-CN in addition to EUC_CN , EUC-CN will be retained as compatibility aliases for this charset. ###@###.### 2003-10-14
14-10-2003