-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
Problème
Lorsqu'on essaie d'enregistrer du texte contenant des caractères spéciaux ou des emojis (comme '\U0001f504'), l'application génère une erreur :
UnicodeEncodeError: 'charmap' codec can't encode character '\U0001f504' in position 9018: character maps to
Solution proposée
Ajouter le paramètre d'encodage UTF-8 à toutes les opérations de lecture/écriture de fichiers :
# Remplacer
with open(os.path.join(NOTES_DIR, filename), "r") as file:
# Par
with open(os.path.join(NOTES_DIR, filename), "r", encoding="utf-8") as file:Metadata
Metadata
Assignees
Labels
No labels