]> git.parisson.com Git - teleforma.git/commitdiff
fix UTF-8 encoding tc202 0.9-tc
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Thu, 1 Dec 2022 13:42:00 +0000 (14:42 +0100)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Thu, 1 Dec 2022 13:44:10 +0000 (14:44 +0100)
teleforma/management/commands/teleforma-export-stream-m-slugs.py

index 497c4f42feffdecb8199b9dc89bcd41754d728c4..1c8acdf36f036e275828031faf1c08b97e92caea 100644 (file)
@@ -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()