List of utility methods to do HTML Charset Get
String | getHtmlCharset(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; |