diff options
author | Lars Wirzenius <liw@liw.fi> | 2013-04-13 17:37:51 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2013-04-13 17:37:51 +0100 |
commit | 5c20414682c3ce1738b84d9ce6c936c0f7ed44cd (patch) | |
tree | 87865fa6f10169847acf224a02d3c3e88ba9de7c | |
parent | 5dd30fa4f90c17187a1141930954ae04b205fef3 (diff) | |
download | clab-5c20414682c3ce1738b84d9ce6c936c0f7ed44cd.tar.gz |
Output names in utf-8
-rwxr-xr-x | clab | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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() |