From cf0511b5a53d5366b24164292d17e4aebdb09c99 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Wed, 14 Mar 2018 11:20:16 +0100 Subject: [PATCH] to_csv email list encoding utf 8 --- rowers/management/commands/getemail_list.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rowers/management/commands/getemail_list.py b/rowers/management/commands/getemail_list.py index f12679a0..8e538392 100644 --- a/rowers/management/commands/getemail_list.py +++ b/rowers/management/commands/getemail_list.py @@ -37,7 +37,7 @@ def getemails(): class Command(BaseCommand): def handle(self, *args, **options): email_list = getemails() - email_list.to_csv('email_list.csv') + email_list.to_csv('email_list.csv',encoding='utf-8') fullemail = 'roosendaalsander@gmail.com' subject = "Rowsandall users list"