JDK-4924014 : No support for cp1047 encoding (IBM-1047 alias not supported)
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.nio.charsets
  • Affected Version: 1.4.1
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_8
  • CPU: sparc
  • Submitted: 2003-09-17
  • Updated: 2003-11-07
  • Resolved: 2003-11-07
Related Reports
Duplicate :  
Relates :  
Description
Customer has web applications that are served from an IBM mainframe linux image.
They are getting errors when trying to access the applications.
eg:
http://swforum.sun.com/jive/thread.jsp?forum=2&thread=528


HTTP/1.1 401 Unauthorized
Server: IBM HTTP Server/V5R3M0
Date: Tue, 19 Aug 2003 20:35:09 GMT
Connection: keep-alive
Accept-Ranges: bytes
Content-Type: text/html; charset=IBM-1047
Content-Length: 285
Last-Modified: Tue, 19 Aug 2003 20:35:09 GMT
Expires: Tue, 19 Aug 2003 20:35:09 GMT
Pragma: no-cache
Cache-Control: no-cache
WWW-Authenticate: Basic realm="ADTSO"

IMW0254E <HTML><HEAD><TITLE>Error</title></head><BODY
bgcolor="#FFF7E7"><H1>Error 401</h1>IMW0216E Not
authorized.  Authentication failed.<P><HR><ADDRESS><A
HREF="http://webtest.is.chrysler.com/" target="_top">IBM HTTP Server -
North American Edition V5R3M0</a></address></body></html>GET
/cgi-bin/db2www/restricted/slsmkt/ffms/DriverEntry.d2w/input HTTP/1.1
Host: webtest.is.chrysler.com
Connection: keep-alive
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-excel, application/vnd.ms-powerpoint,
application/msword, application/x-shockwave-flash, */*
Referer: http://webtest.is.chrysler.com/slsmkt/ffms/MainMenu.htm
Accept-Language: en-us
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR
1.1.4322)
Cookie: UUID=3F42430A:000C5C05:129.9.153.249:8319404F; OPENALTEON=0a200c6a;
ipsDomain=dc
X-Forwarded-For: 64.28.83.110
Via: 1.0 cassdc01 (NetCache NetApp/5.3.1R2)



Canonical name of the unicode is cp1047.

We have checked the supported encodings and this one appears not to be
supported.

http://java.sun.com/products/jdk/1.2/docs/guide/internat/encoding.doc.html
http://java.sun.com/j2se/1.3/docs/guide/intl/encoding.doc.html
http://java.sun.com/j2se/1.4.2/docs/guide/intl/encoding.doc.html



###@###.### 2003-09-23

Comments
EVALUATION Cp1047 support was added in 1.4.2 It should be listed in the 1.4.2 J2SE supported encoding list I will submit a separate bug to ensure that the docs are updated in 1.5 to reflect the support for this codepage/converter. ###@###.### 2003-09-23 The docs have been updated Cp1047 is supported in 1.4.2. However some commonly used aliases aside from "Cp1047" which *is* supported in 1.4.2 and notably "IBM-1047" are not provided as part of the lookup identifiers for this encoding. As part of the migration work for 4891216 (IBM codepage converter migration to use nio charset API) the required aliases have been included. I have modified the bug synopsis to request "IBM-1047" alias support for Cp1047. I will also downgrade the bug to p3 since Cp1047 has been supported since 1.4.2 albeit in a limited way. ###@###.### 2003-09-26 The IBM-1047 alias is now instituted as part of the migration of common IBM converters to use the java.nio.charset API/SPI (see bugID 4891216). This should be verifiable from b28 onwards of 1.5.0. Closing this bug out as duplicate of 4891216.
03-09-2004