Here you can find the source of isUtf8Supported()
public static boolean isUtf8Supported()
//package com.java2s; // Licensed to the Apache Software Foundation (ASF) under one import java.nio.charset.Charset; public class Main { private static final String UTF8 = "UTF-8"; public static boolean isUtf8Supported() { return Charset.isSupported(UTF8); }//from ww w . j a v a 2 s . c o m }