]> git.ozlabs.org Git - patchwork/blobdiff - apps/patchwork/bin/pwclient
pwclient: fix handling UTF-8 in patch info
[patchwork] / apps / patchwork / bin / pwclient
index 5fce359e591ab213f34719ca414b9875960e0595..0c0ccaff7fd25372f50bcda7ebfb4ddd3e4f54f4 100755 (executable)
@@ -231,7 +231,7 @@ def action_info(rpc, patch_id):
     print(s)
     print('-' * len(s))
     for key, value in sorted(patch.iteritems()):
-        print("- %- 14s: %s" % (key, value))
+        print("- %- 14s: %s" % (key, unicode(value).encode("utf-8")))
 
 def action_get(rpc, patch_id):
     patch = rpc.patch_get(patch_id)