Modify monthly progress report to handle unicode characters in document titles. Commit ready for merge.
- Legacy-Id: 11890
This commit is contained in:
parent
96fb33f50d
commit
98b9efdb02
|
@ -19,4 +19,8 @@ django.setup()
|
||||||
|
|
||||||
from ietf.secr.drafts.reports import report_progress_report
|
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,
|
||||||
|
|
Loading…
Reference in a new issue