aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim')
-rw-r--r--vim/plugin/nm_vim.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/vim/plugin/nm_vim.py b/vim/plugin/nm_vim.py
index 7f67189..156d398 100644
--- a/vim/plugin/nm_vim.py
+++ b/vim/plugin/nm_vim.py
@@ -326,7 +326,9 @@ class ShowThread(NMBuffer):
b = vim.current.buffer
if part.get('Content-Disposition', '').lower().startswith('attachment'):
self.objects[-1].attachments.append(Attachment(len(b), len(b), part))
- b.append(('[ Attachment: %s (%s)]'%(part.get_filename(), part.get_content_type())).split('\n'))
+ s = ('[ Attachment: %s (%s)]'%(part.get_filename(),
+ part.get_content_type())).encode('utf-8')
+ b.append(s.split('\n'))
if part.get_content_maintype() == 'text':
p = self._read_text_payload(part)