From 5c20414682c3ce1738b84d9ce6c936c0f7ed44cd Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sat, 13 Apr 2013 17:37:51 +0100 Subject: Output names in utf-8 --- clab | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clab b/clab index 8ea1d5d..9b93ab4 100755 --- a/clab +++ b/clab @@ -120,7 +120,8 @@ class CommandLineAddressBook(cliapp.Application): name = entry.get_single('name', '') emails = entry.get_subdict('email') for email in emails: - self.output.write('%s\t%s\n' % (emails[email], name)) + n = name.encode('utf-8') + self.output.write('%s\t%s\n' % (emails[email], n)) CommandLineAddressBook().run() -- cgit v1.2.1