]> git.ozlabs.org Git - patchwork/blobdiff - apps/patchwork/bin/pwclient
pwclient: fix handling of UTF-8 char in submitter name
[patchwork] / apps / patchwork / bin / pwclient
index dc836e918121fdac782e2111987817ecf33d2d93..dba68fb036b1b28c9351548f6cf142b770238ccb 100755 (executable)
@@ -179,7 +179,8 @@ def action_list(rpc, filter, submitter_str, delegate_str):
             for id in ids:
                 person = rpc.person_get(id)
                 print "Patches submitted by %s <%s>:" % \
-                        (person['name'], person['email'])
+                        (unicode(person['name']).encode("utf-8"), \
+                         unicode(person['email']).encode("utf-8"))
                 f = filter
                 f.add("submitter_id", id)
                 patches = rpc.patch_list(f.d)