We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 274548f commit 08f0338Copy full SHA for 08f0338
1 file changed
ietf/submit/parsers/plain_parser.py
@@ -32,7 +32,10 @@ def parse_file_charset(self):
32
magic.magic_load(m.cookie, None)
33
filetype = m.from_buffer(content)
34
if not 'ascii' in filetype and not 'utf-8' in filetype:
35
- 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. '
36
+ 'Found an unexpected encoding: "%s". '
37
+ 'You probably have one or more non-ascii characters in your file.' % filetype
38
+ )
39
40
def parse_name(self):
41
self.fd.file.seek(0)
0 commit comments