Re: Encoding (continued)



Daniel Moyne wrote:
I am using in my programme this :
public int charSet=0;
..............
public String [] charSets={"utf-8","iso-8859-15"};
BufferedReader entree=new BufferedReader(new
InputStreamReader(inputStream,charSets[charSet]));

Regarding the list of authorized charset names such as "utf-8" where do I
find a Java list of acceptable names as apparently all this is very
cofusing with names and aliases.

final SortedMap<String, Charset> csMap = Charset.availableCharsets();
for (final String name : csMap.keySet()) {
final Charset cs = csMap.get(name);
final Set<String> aliasSet = cs.aliases();
...
}

--
John W. Kennedy
"The blind rulers of Logres
Nourished the land on a fallacy of rational virtue."
-- Charles Williams. "Taliessin through Logres: Prelude"
.