public static String parseByContent(String urlStr) {
		
		String temp;
		String charset = null;
		String regex_charset = "<meta http-equiv=\"content-type\" content=\"text/html;[ ]{0,1}charset=(.*?)\"[ ]{0,1}[/]{0,1}>";
		String regex_charset_spc = "<meta content=\"text/html;[ ]{0,1}charset=(.*)\" http-equiv=\"content-type\"[ ]{0,1}[/]{0,1}>";
		try {
			URL url = new URL(urlStr);
			final BufferedReader br = new BufferedReader(new InputStreamReader(
					url.openStream()));
			while ((temp = br.readLine()) != null) {
				temp = temp.toLowerCase();
				Pattern p_charset = Pattern.compile(regex_charset);
				Matcher m_charset = p_charset.matcher(temp);
				if (m_charset.find()) {
					System.out.println("content-type" + temp);
					charset = m_charset.group(1);
					break;
				}

				Pattern p_charset_spc = Pattern.compile(regex_charset_spc);
				Matcher m_charset_spc = p_charset_spc.matcher(temp);
				if (m_charset_spc.find()) {
					System.out.println(2);
					charset = m_charset_spc.group(1);
					break;
				}
			}
			if (charset == null) {
				charset = "utf-8";
			}
		} catch (MalformedURLException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
		return charset;
	}