Fix UnicodeEncodeError when exporting playlists with special characters (#3)
+1 −1 · 1 file changed
-
src/yt_playlist_export/yt_playlist_export.py+1 −1
@@ -75,7 +75,7 @@ def print_csv(info: any): if output is None: csv_file = sys.stdout else: - csv_file = open(output, mode='w', newline='') + csv_file = open(output, mode='w', newline='', encoding='utf-8') writer = csv.DictWriter(csv_file, fieldnames=header) writer.writeheader() for row in convert_to_csv(info):