def encode(html, content_type=None, default_encoding='utf-8'):
    encoding = default_encoding
    if content_type:
        ct = content_type.lower()
        r = ct.find('charset=')
        if r!=(-1):
            encoding = content_type[r+8:].strip()
    return html.decode(encoding)
Renders horizontal header separator.
dataset/ETHPy150Open michaelliao/transwarp/transwarp/urlfetch.py/encode--crossover with--dataset/ETHPy150Open sdispater/cleo/cleo/helpers/table.py/Table._render_row_separator