diff --git a/projects/anki/example/index.qmd b/projects/anki/example/index.qmd index d5fd65d..1c83250 100644 --- a/projects/anki/example/index.qmd +++ b/projects/anki/example/index.qmd @@ -171,7 +171,10 @@ for card in romantic_deck.cards: os.makedirs('assets/flashcards', exist_ok=True) # Export flashcards to CSV file -with open('assets/flashcards/romantic-flashcards.csv', 'w', newline='') as csvfile: +with open('assets/flashcards/romantic-flashcards.csv', + 'w', + newline='', + encoding='utf-8') as csvfile: writer = csv.writer(csvfile) # Write header row writer.writerow(['Question', 'Answer', 'Tags'])