LBeaudoux / iso639

A fast, simple ISO 639 library.
MIT License
32 stars 4 forks source link

Encoding fix #1

Closed Dzejro closed 3 years ago

Dzejro commented 4 years ago

Last version https://pypi.org/project/iso639-lang/ can't read .tab file, I got exception. Please fix it.

Thank you

def _load_iso639_table():
    """Load the iso639 table from its tab file.
    """
    with open(TABLE_PATH, encoding='utf-8') as f:
        reader = csv.reader(f, delimiter="\t")
        next(reader)

        return [row for row in reader]
LBeaudoux commented 3 years ago

Thanks for reporting this bug on Windows. It's been fixed in the latest update of the package.