diff options
author | Mark Sapiro <mark@msapiro.net> | 2016-07-14 19:10:24 -0700 |
---|---|---|
committer | Mark Sapiro <mark@msapiro.net> | 2016-07-14 19:10:24 -0700 |
commit | b17234a23a590d9b27f3f609781596eea27b6974 (patch) | |
tree | 6d065e88b6a68a6fbc989a4b8e425769da00d293 /Mailman/htmlformat.py | |
parent | 6efea059931995de8713f35bccc1116905175cf2 (diff) | |
download | mailman2-b17234a23a590d9b27f3f609781596eea27b6974.tar.gz mailman2-b17234a23a590d9b27f3f609781596eea27b6974.tar.xz mailman2-b17234a23a590d9b27f3f609781596eea27b6974.zip |
Match header_filter_rules as normalized unicodes.
Diffstat (limited to '')
-rwxr-xr-x | Mailman/htmlformat.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Mailman/htmlformat.py b/Mailman/htmlformat.py index 419fa296..2770eb60 100755 --- a/Mailman/htmlformat.py +++ b/Mailman/htmlformat.py @@ -1,4 +1,4 @@ -# Copyright (C) 1998-2015 by the Free Software Foundation, Inc. +# Copyright (C) 1998-2016 by the Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -453,7 +453,7 @@ class InputObj: output.append('>') ret = SPACE.join(output) if self.type == 'TEXT' and isinstance(ret, unicode): - ret = ret.encode(charset, 'replace') + ret = ret.encode(charset, 'xmlcharrefreplace') return ret @@ -504,7 +504,7 @@ class TextArea: output += ' READONLY' output += '>%s</TEXTAREA>' % self.text if isinstance(output, unicode): - output = output.encode(charset, 'replace') + output = output.encode(charset, 'xmlcharrefreplace') return output class FileUpload(InputObj): |