From 8cbb55f4eada87ad48e78c199d7b434eef985f40 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Thu, 1 Dec 2022 14:42:00 +0100 Subject: [PATCH] fix UTF-8 encoding --- .../management/commands/teleforma-export-stream-m-slugs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teleforma/management/commands/teleforma-export-stream-m-slugs.py b/teleforma/management/commands/teleforma-export-stream-m-slugs.py index 497c4f42..1c8acdf3 100644 --- a/teleforma/management/commands/teleforma-export-stream-m-slugs.py +++ b/teleforma/management/commands/teleforma-export-stream-m-slugs.py @@ -51,7 +51,7 @@ streams.monitor.limit=100 file = args[1] self.export() f = open(file, 'w') - f.write(self.data) + f.write(self.data.encode('UTF-8')) f.close() -- 2.39.5