From 08f033855563447d01a4cdbf500c83dce65bdc24 Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Mon, 3 Jul 2017 11:38:03 +0000 Subject: [PATCH] Tweaked the wording of the unexpected-encoding warning. - Legacy-Id: 13760 --- ietf/submit/parsers/plain_parser.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ietf/submit/parsers/plain_parser.py b/ietf/submit/parsers/plain_parser.py index 4de4ff0b6..afb65233f 100644 --- a/ietf/submit/parsers/plain_parser.py +++ b/ietf/submit/parsers/plain_parser.py @@ -32,7 +32,10 @@ class PlainParser(FileParser): magic.magic_load(m.cookie, None) filetype = m.from_buffer(content) if not 'ascii' in filetype and not 'utf-8' in filetype: - self.parsed_info.add_error('A plain text ASCII document is required. Found an unexpected encoding: "%s"' % filetype) + self.parsed_info.add_error('A plain text ASCII document is required. ' + 'Found an unexpected encoding: "%s". ' + 'You probably have one or more non-ascii characters in your file.' % filetype + ) def parse_name(self): self.fd.file.seek(0)