Hello. When I output a deck from Anki Desktop, and send it to friends, they notice an UTF8 error when re-entering. Thank you for your help, how can we solve this problem?
Version 2.1.35 (84dcaa86)
Python 3.8.0 Qt 5.14.2 PyQt 5.14.2
Could you paste the exact error message with the UTF-8 error or a screenshot?
If you export your notes as a plain text file and import them again, there should be no error message. Maybe something happened with the text file and its encoding had been changed from UTF-8 to something else.
Maybe instead of exporting and importing as .txt, try to export and import as .apkg.
changed it.
I also tested exporting a deck in .apkg format. this is the error that i get:
Anki 2.1.35 (84dcaa86) Python 3.8.0 Qt 5.14.2 PyQt 5.14.2
Platform: Windows 10
Flags: frz=True ao=False sv=2
Add-ons, last update check: 2020-11-09 11:15:27
Caught exception:
Traceback (most recent call last):
File "anki\notes.py", line 108, in _fieldOrd
KeyError: 'روی کارت'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "aqt\taskman.py", line 87, in _on_closures_pending
File "aqt\taskman.py", line 59, in <lambda>
File "aqt\exporting.py", line 167, in on_done
File "concurrent\futures\_base.py", line 432, in result
File "concurrent\futures\_base.py", line 388, in __get_result
File "concurrent\futures\thread.py", line 57, in run
File "aqt\exporting.py", line 161, in do_export
File "anki\exporting.py", line 325, in exportInto
File "anki\exporting.py", line 339, in doExport
File "anki\exporting.py", line 382, in _addDummyCollection
File "anki\notes.py", line 116, in __setitem__
File "anki\notes.py", line 110, in _fieldOrd
KeyError: 'روی کارت'
I can still export them as text tho.
and also I can import text files too.
Thanks for the report; this is caused by the code assuming the front/back field names in core and desktop will match, which they currently don’t. I’ll try to change the code to cope with this case.