From d79dccace4f8a35b8f9c93bd17aa1dfc29adca98 Mon Sep 17 00:00:00 2001 From: Enrico Carlesso Date: Wed, 13 Feb 2013 15:08:09 +0100 Subject: [PATCH] Fixed utf-8 problem --- mega.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mega.py b/mega.py index 46388b6..f803679 100644 --- a/mega.py +++ b/mega.py @@ -240,7 +240,7 @@ class Mega(object): attribs = decrypt_attr(attribs, k) file_name = attribs['n'] - print "downloading {0} (size: {1}), url = {2}".format(attribs['n'], + print "downloading {0} (size: {1}), url = {2}".format(attribs['n'].encode("utf8"), file_size, file_url) @@ -379,4 +379,4 @@ class Mega(object): elif file['t'] == 4: self.trashbin_id = file['h'] file['a'] = {'n': 'Rubbish Bin'} - return file \ No newline at end of file + return file