diff --git a/plugins/icecast/__init__.py b/plugins/icecast/__init__.py index 84333a860..95c413fea 100644 --- a/plugins/icecast/__init__.py +++ b/plugins/icecast/__init__.py @@ -121,7 +121,7 @@ def _save_cache(self): station.setAttribute('format', url['format']) genre.appendChild(station) genrelist.appendChild(genre) - with open(self.cache_file, 'w') as h: + with open(self.cache_file, 'w', encoding="utf-8") as h: document.writexml(h, indent='\n', encoding='utf-8') def get_lists(self, no_cache=False):