Re: Encoding (continued)
- From: "John W. Kennedy" <jwkenne@xxxxxxxxxxxxx>
- Date: Sat, 24 Feb 2007 16:21:44 -0500
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"
.
- References:
- Encoding (continued)
- From: Daniel Moyne
- Encoding (continued)
- Prev by Date: Re: ArrayList.get help ?
- Next by Date: Unchecked compiler warning
- Previous by thread: Re: Encoding (continued)
- Next by thread: ArrayList.get help ?
- Index(es):