Modify monthly progress report to handle unicode characters in document titles. Commit ready for merge.

- Legacy-Id: 11890
This commit is contained in:
Ryan Cross 2016-08-26 22:35:48 +00:00
parent 96fb33f50d
commit 98b9efdb02

View file

@ -19,4 +19,8 @@ django.setup()
from ietf.secr.drafts.reports import report_progress_report
print report_progress_report(sys.argv[1], sys.argv[2]),
# handle unicode characters before attempting to print
output = report_progress_report(sys.argv[1], sys.argv[2])
output = output.replace(unichr(160),' ') # replace NO-BREAK SPACE with space
output = output.encode('ascii','replace')
print output,