Skip to content

Commit 714781d

Browse files
committed
Merged in [11890] from rcross@amsl.com:
Modify monthly progress report to handle unicode characters in document titles. - Legacy-Id: 11895 Note: SVN reference [11890] has been migrated to Git commit 98b9efd
2 parents 4940bf7 + 98b9efd commit 714781d

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)