From e3ccbac03a111d2a2262319de831536b654c663b Mon Sep 17 00:00:00 2001 From: sadorowo Date: Sun, 25 Feb 2024 19:44:55 +0100 Subject: [PATCH] add: save using utf8 encoding --- __main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/__main__.py b/__main__.py index 62a97d6..ea79a9f 100644 --- a/__main__.py +++ b/__main__.py @@ -100,7 +100,7 @@ def save_result( input_path: str, playlist: tv_playlist.M3UPlaylist ): - with open(input_path, "w+") as f: + with open(input_path, "w+", encoding="utf-8") as f: f.write(playlist.to_m3u_plus_playlist()) print("File overwritten.")