diff --git a/deluge/core/torrent.py b/deluge/core/torrent.py index dff29ca5e..7e7f955b7 100644 --- a/deluge/core/torrent.py +++ b/deluge/core/torrent.py @@ -478,7 +478,8 @@ class Torrent(object): for index, file in enumerate(files): ret.append({ 'index': index, - 'path': file.path.decode("utf8", "ignore"), + # Make path separators consistent across platforms + 'path': file.path.decode("utf8").replace('\\', '/'), 'size': file.size, 'offset': file.offset })