JDK-4556882 : Follow the IANA definition for "shift_jis" charset name
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.nio.charsets
  • Affected Version: 1.4.0
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2001-12-07
  • Updated: 2002-07-23
  • Resolved: 2002-04-25
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
1.4.1 hopperFixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
Currently J2SE doesn't follow the IANA definition of the MIME tag
"shift_jis", which is defined as an MS932 (Microsoft Codepage 932) alias
in J2SE. This is because most Japanese developers and end users think that
what Microsoft does for their Windows operating systems is the correct
"Shift-JIS" support. If Java didn't behave in the same way as other
Windows software, such as Outlook Express, MS Word, Netscape Communicator
(composer), people would think it's a bug in Java even Java did it right. 
(See bug# 4100019)

This is causing, however, different problems in the network environment
when Java needs to talk to systems that correctly interpret the MIME
tags. For example, it's fatal that Java can't interpret the specified
charset in XML correctly.

It might be time to change the "shift_jis" as an alias of SJIS
(JIS-defined "Shift-JIS". Refer to JIS X 0208:1997).

Note that this change may generate bug reports from those who think
"shift_jis" is a synonym of Microsoft Codepage 932. Sun needs to be ready
to tell them that they are wrong.

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: hopper FIXED IN: hopper INTEGRATED IN: hopper VERIFIED IN: hopper-rc
14-06-2004

EVALUATION As part of the introduction of newly implemented (using NIO cs API) charset support in Hopper we are reappraising the aliases attributed to the various supported encodings. This particular change will be effected for 1.4.1 beta. ###@###.### 2002-03-14
14-03-2002

SUGGESTED FIX *** /tmp/geta18412 Thu Dec 6 21:50:35 2001 --- CharacterEncoding.java Thu Dec 6 21:50:31 2001 *************** *** 607,623 **** aliasTable.put("csjisencoding", "ISO2022JP"); // MIBenum: 17/2024 - aliasTable.put("shift_jis", "MS932"); - aliasTable.put("ms_kanji", "MS932"); - aliasTable.put("csshiftjis", "MS932"); aliasTable.put("windows-31j", "MS932"); aliasTable.put("cswindows31j", "MS932"); - aliasTable.put("x-sjis", "MS932"); // JIS-defined Shift JIS aliasTable.put("\u30b7\u30d5\u30c8\u7b26\u53f7\u5316\u8868\u73fe", "SJIS"); // JIS name aliasTable.put("pck", "SJIS"); // Solaris PCK // MIBenum: 18 // Japanese EUC --- 607,623 ---- aliasTable.put("csjisencoding", "ISO2022JP"); // MIBenum: 17/2024 aliasTable.put("windows-31j", "MS932"); aliasTable.put("cswindows31j", "MS932"); // JIS-defined Shift JIS aliasTable.put("\u30b7\u30d5\u30c8\u7b26\u53f7\u5316\u8868\u73fe", "SJIS"); // JIS name aliasTable.put("pck", "SJIS"); // Solaris PCK + aliasTable.put("shift_jis", "SJIS"); + aliasTable.put("ms_kanji", "SJIS"); + aliasTable.put("csshiftjis", "SJIS"); + aliasTable.put("x-sjis", "SJIS"); // MIBenum: 18 // Japanese EUC ###@###.### 2001-12-07
07-12-2001