Android Utililty Methods Charset Create

List of utility methods to do Charset Create

Description

The list of methods to do Charset Create are organized into topic(s).

Method

CharsetcharsetForVendor(String charsetName)
Returns the vendor-specific character set corresponding to the given original character set name and default vendor (that is, the targeted vendor of the device this code is running on).
return charsetForVendor(charsetName, getDefaultVendor());
CharsetcharsetForVendor(String charsetName, String vendor)
Returns the vendor-specific character set corresponding to the given original character set name and vendor.
charsetName = nameForVendor(charsetName, vendor);
return Charset.forName(charsetName);
java.nio.charset.CharsetgetCharset(String charsetName)
get Charset
String defaultCharset = "ISO-8859-1";
if (charsetName == null)
    charsetName = defaultCharset;
try {
    return java.nio.charset.Charset.forName(charsetName);
} catch (IllegalCharsetNameException e) {
    return java.nio.charset.Charset.forName(defaultCharset);
} catch (UnsupportedCharsetException ex) {
...