Android Utililty Methods HTML Charset Get

List of utility methods to do HTML Charset Get

Description

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

Method

StringgetHtmlCharset(String content)
get Html Charset
String encoding = null;
final String CHARSET_REGX = "<meta.*charset=\"?([a-zA-Z0-9-_/]+)\"?";
Matcher m = Pattern.compile(CHARSET_REGX).matcher(content);
if (m.find()) {
    encoding = m.group(1);
return encoding;