From: Guillaume Pellerin Date: Thu, 1 Dec 2022 13:42:00 +0000 (+0100) Subject: fix UTF-8 encoding X-Git-Tag: 0.9-tc X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=refs%2Fheads%2Ftc202;p=teleforma.git fix UTF-8 encoding --- 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()