[Mailman-Users] Uncaught runner exception: 'ascii' codec can't encode character u'\u201c'

Sahil Tandon sahil+mailman-users at tandon.net
Sat Feb 4 22:14:35 CET 2012


I am seeing this error with all mail sent to just one (of several)
mailman mailing lists that are operating without problems.  I found some
related discussions in the archives, but nothing that (as far as I could
tell) corresponds to what I am seeing.

Sorry for my MUA's line wrapping:

---

Feb 04 20:31:51 2012 (1176) Uncaught runner exception: 'ascii' codec
can't encode character u'\u201c' in position 0: ordinal not in
range(128)
Feb 04 20:31:51 2012 (1176) Traceback (most recent call last):
  File "/usr/local/mailman/Mailman/Queue/Runner.py", line 111, in
_oneloop
    self._onefile(msg, msgdata)
  File "/usr/local/mailman/Mailman/Queue/Runner.py", line 167, in
_onefile
    keepqueued = self._dispose(mlist, msg, msgdata)
  File "/usr/local/mailman/Mailman/Queue/IncomingRunner.py", line 130,
in _dispose
    more = self._dopipeline(mlist, msg, msgdata, pipeline)
  File "/usr/local/mailman/Mailman/Queue/IncomingRunner.py", line 153,
in _dopipeline
    sys.modules[modname].process(mlist, msg, msgdata)
  File "/usr/local/mailman/Mailman/Handlers/ToDigest.py", line 91, in
process
    send_digests(mlist, mboxfp)
  File "/usr/local/mailman/Mailman/Handlers/ToDigest.py", line 132, in
send_digests
    send_i18n_digests(mlist, mboxfp)
  File "/usr/local/mailman/Mailman/Handlers/ToDigest.py", line 306, in
send_i18n_digests
    msg = scrubber(mlist, msg)
  File "/usr/local/mailman/Mailman/Handlers/Scrubber.py", line 182, in
process
    charset = part.get_content_charset(lcset)
  File "/usr/local/mailman/pythonlib/email/Message.py", line 817, in
get_content_charset
    charset = unicode(charset[2], pcharset).encode('us-ascii')
UnicodeEncodeError: 'ascii' codec can't encode character u'\u201c' in
position 0: ordinal not in range(128)

Feb 04 20:31:51 2012 (1176) SHUNTING:
1328387505.157315+73d2286bbd8f34b0f690645d2037aa561e373438

---

If I understand the exception correctly, 'position 0' is the first
character in the shunted pickle file?  But in the beginning of the file
I see:

 [----- start pickle file -----]
 <----- start object 1 ----->
 From owner-test-list at tandon.net  Sat Feb  4 20:31:45 2012
 ...

I do not see the U+201C and am stuck trying to figure out why all mail
(regardless of content) to this - and only this list - is shunted.

Thanks for any pointers.

-- 
Sahil Tandon


More information about the Mailman-Users mailing list