Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4166609
Votes 0
Synopsis RFE: Missing or incorrect Char Converters names
Category java:char_encodings
Reported Against 1.2beta3
Release Fixed
State 11-Closed, duplicate of 4313884, request for enhancement
Priority: 4-Low
Related Bugs 4313884
Submit Date 14-AUG-1998
Description




As far as character set conversions go, the Java API is
deficient, and seriously compromises its functionality.

No Converter Names. You can't get a human-readable alias for converters--so if you have no idea
what Cp964 is, for example, you are stuck. For an example of how
this is used, see Netscape's Encoding menu.

Moreover, many of the names are very misleading, such as the ones listed in the table below. If you
are converting a series of strings to be later concatenated, for example, you only want a signature on
the very first of them (if at all)--so you need to know to start with UnicodeBig, but continue with
UnicodeBigUnmarked (or  UnicodeLittle and UnicodeLittleUnmarked, resp.). 

  Java Name                       Description
  Unicode, UnicodeBig             Unicode (UTF-16BE), prefaced by FEFF signature
  UnicodeLittle                   Little Endian Unicode (UTF-16LE), prefaced by FFFE signature
  UnicodeBigUnmarked              Unicode (UTF-16BE)
  UnicodeLittleUnmarked           Little Endian Unicode (UTF-16LE)
  JIS                             JIS with ISO 2022 announcers


Illegal Codes. There is no way to control what happens with illegal byte sequences. They are
usually just skipped, with no warning. 



======================================================================
Work Around
N/A
Evaluation
Good suggestion.
mark.son-  xxxxx@xxxxx   1998-08-14

The issues mentioned should be addressed as part of RFE 4287465. I'm leaving this RFE open though because it provides more detail.
  xxxxx@xxxxx   2000-01-26
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang