UTF8 error in importing deck

It’s been caused by the translated string in “فارسی”, “fa_IR”.

#: pylib/anki/importing/__init__.py:14
msgid "Packaged Anki Deck/Collection (*.apkg *.colpkg *.zip)"
msgstr "دسته/مجموعۀ آنکی بسته‌بندی شد (*.apkg*.colpkg*.zip)"

There are no spaces between *.apkg*.colpkg*.zip in the translated version and Anki fallbacks to importing an .apkg file as a .tsv file.

A quick workaround is to switch the interface language to English (Tools - Preferences or Ctrl-P).

But the translated string will need to be updated, i.e.
*.apkg*.colpkg*.zip
replaced with
*.apkg *.colpkg *.zip

4 Likes