(page)
return retVal
Returns page encoding charset detected by usage of heuristics
    Reference: http://chardet.feedparser.org/docs/
Returns page encoding charset detected by usage of heuristics
    Reference: http://chardet.feedparser.org/docs/
Returns page encoding charset detected by usage of heuristics Reference : http : // chardet . feedparser . org / docs /
def getHeuristicCharEncoding(page):
    """
    Returns page encoding charset detected by usage of heuristics
    Reference: http://chardet.feedparser.org/docs/
    """
    retVal = detect(page)["encoding"]

    if retVal:
        infoMsg = "heuristics detected web page charset '%s'" % retVal
        singleTimeLogMessage(infoMsg, logging.INFO, retVal)

    return retVal
def getHeuristicCharEncoding ( page ) : retVal = detect ( page ) [ "encoding" ] if retVal : infoMsg = "heuristics detected web page charset '%s'" % retVal singleTimeLogMessage ( infoMsg , logging . INFO , retVal ) return retVal