def read_txt(fname, encoding='utf-8'):
    """
    Read a file with encoding
    """
    try:
        with open(fname, 'r', encoding='utf-8') as f:
            txt = f.read()
    except UnicodeDecodeError as e:
        print(f'read_txt({fname}, {encoding})')
        raise e

    return txt