diff options
author | tkikuchi <> | 2004-11-13 04:39:33 +0000 |
---|---|---|
committer | tkikuchi <> | 2004-11-13 04:39:33 +0000 |
commit | d574f234fda1e19e778eaeda95170fbaa98fa1fc (patch) | |
tree | 3510aa9c19447e7b40c6618e87672c0cf4ea2924 | |
parent | c1d0097271a8348422201cb65257bbd468152ded (diff) | |
download | mailman2-d574f234fda1e19e778eaeda95170fbaa98fa1fc.tar.gz mailman2-d574f234fda1e19e778eaeda95170fbaa98fa1fc.tar.xz mailman2-d574f234fda1e19e778eaeda95170fbaa98fa1fc.zip |
Normalize charset to the output if input/output are different.
-rw-r--r-- | Mailman/Handlers/Scrubber.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Mailman/Handlers/Scrubber.py b/Mailman/Handlers/Scrubber.py index 6116806b..070c307d 100644 --- a/Mailman/Handlers/Scrubber.py +++ b/Mailman/Handlers/Scrubber.py @@ -315,6 +315,9 @@ Url : %(url)s # language's charset. if not charset or charset == 'us-ascii': charset = lcset_out + else: + # normalize to the output charset if input/output are different + charset = Charset(charset).output_charset or charset # We now want to concatenate all the parts which have been scrubbed to # text/plain, into a single text/plain payload. We need to make sure # all the characters in the concatenated string are in the same |