diff --git a/ox/torrent/makemetafile.py b/ox/torrent/makemetafile.py index f4b0ca0..31d6ebe 100644 --- a/ox/torrent/makemetafile.py +++ b/ox/torrent/makemetafile.py @@ -156,7 +156,7 @@ def make_meta_file(file, url, params = {}, flag = Event(), if flag.isSet(): return check_info(info) - h = open(f, 'wb') + h = open(f.encode(encoding), 'wb') data = {'info': info, 'announce': url.strip(), 'creation date': int(time())} if 'comment' in params and params['comment']: