Skip to content

Commit 98b9efd

Browse files
committed
Modify monthly progress report to handle unicode characters in document titles. Commit ready for merge.
- Legacy-Id: 11890
1 parent 96fb33f commit 98b9efd

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

ietf/bin/report_progress_report

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,8 @@ django.setup()
1919

2020
from ietf.secr.drafts.reports import report_progress_report
2121

22-
print report_progress_report(sys.argv[1], sys.argv[2]),
22+
# handle unicode characters before attempting to print
23+
output = report_progress_report(sys.argv[1], sys.argv[2])
24+
output = output.replace(unichr(160),' ') # replace NO-BREAK SPACE with space
25+
output = output.encode('ascii','replace')
26+
print output,

0 commit comments

Comments
 (0)