这个副词通常会导出PDF格式的Anki。我怎么能修理它呢?
Debuginformationen:
Anki 2.1.53 (96bacf79) Python 3.9.7 Qt 5.15.2 PyQt 5.15.5
Platform: Windows 10
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2022-07-11 08:21:44
Caught exception:
Traceback (most recent call last):
File "C:\Users\lombe\AppData\Roaming\Anki2\addons21\anki-export\__init__.py", line 37, in <lambda>
a.triggered.connect(lambda: export_cards(browser.selectedCards()))
File "C:\Users\lombe\AppData\Roaming\Anki2\addons21\anki-export\__init__.py", line 30, in export_cards
file.write(output_text)
File "tempfile", line 474, in func_wrapper
File "encodings.cp1252", line 19, in encode
UnicodeEncodeError: 'charmap' codec can't encode character '\u03c6' in position 45247: character maps to <undefined>发布于 2022-08-14 07:19:30
确保您在open()中指定了UTF-8编码。例如:
open('myfile', encoding='utf-8')https://stackoverflow.com/questions/72934759
复制相似问题