Skip to content
Snippets Groups Projects
Commit d4ee2f6d authored by Dan Pasanen's avatar Dan Pasanen
Browse files

repopick: encode commit subjects in utf-8 for printing

* Fixes errors like UnicodeEncodeError: 'ascii' codec can't encode
  character u'\xb0' in position 51: ordinal not in range(128) with weird
  characters in a commit message

Change-Id: I700198481630b4b29fd6d5d1f0c79bb94e59ad86
parent bfaafb5e
No related branches found
No related tags found
No related merge requests found
......@@ -347,7 +347,7 @@ if __name__ == '__main__':
# Print out some useful info
if not args.quiet:
print('--> Subject: "{0}"'.format(item['subject']))
print('--> Subject: "{0}"'.format(item['subject'].encode('utf-8')))
print('--> Project path: {0}'.format(project_path))
print('--> Change number: {0} (Patch Set {0})'.format(item['id']))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment