|
Quick Lists
|
|
Bug ID:
|
4126141
|
|
Votes
|
3
|
|
Synopsis
|
RFE: Add method to query encodings available on platform
|
|
Category
|
java:char_encodings
|
|
Reported Against
|
1.2beta3
|
|
Release Fixed
|
|
|
State
|
11-Closed, duplicate of 4313884,
request for enhancement
|
|
Priority:
|
4-Low
|
|
Related Bugs
|
4166605
,
4284916
,
4313884
|
|
Submit Date
|
06-APR-1998
|
|
Description
|
Currently there is no way to discover at runtime
what encodings are available when running the jvm.
This is a request for enhancement that would allow
you to programmatically query to discover what
encodings are available. This pertains to the
character encoding such as the String that
is part of the constructor for OutputStreamWriter,
as in:
public OutputStreamWriter(OutputStream out
String enc) throws UnsupportedEncodingException
I realize you can always try a particular
encoding as a String and wait for the
UnsupportedEncodingException. However, this does
nothing for you in case you want to, for example,
present the user at runtime a list of all available
encodings.
Thanks,
Jon Steelman
steelman "at" mindspring.com
(Review ID: 27139)
======================================================================
|
|
Work Around
|
N/A
|
|
Evaluation
|
Since encodings are also used by java.lang.String, perhaps the best place for
this feature is in java.lang.System, e.g., String[] getAvailableEncodings().
-- xxxxx@xxxxx 4/6/1998
This should be addressed as part of RFE 4287465. Leaving this RFE open though since it provides more detail.
xxxxx@xxxxx 2000-02-25
|
|
Comments
|
PLEASE NOTE: JDK6 is formerly known as Project Mustang
|
|
|
 |