FAQ
Can anyone explain this one to me?

Mar 04 07:35:02 2005 (4008) Uncaught runner exception: unknown encoding:
gb2312
Mar 04 07:35:02 2005 (4008) Traceback (most recent call last):
File "/home/mailman-2.1/Mailman/Queue/Runner.py", line 111, in
_oneloop
self._onefile(msg, msgdata)
File "/home/mailman-2.1/Mailman/Queue/Runner.py", line 167, in
_onefile
keepqueued = self._dispose(mlist, msg, msgdata)
File "/home/mailman-2.1/Mailman/Queue/IncomingRunner.py", line 130, in
_dispose
more = self._dopipeline(mlist, msg, msgdata, pipeline)
File "/home/mailman-2.1/Mailman/Queue/IncomingRunner.py", line 153, in
_dopipeline
sys.modules[modname].process(mlist, msg, msgdata)
File "/home/mailman-2.1/Mailman/Handlers/CookHeaders.py", line 74, in
process
prefix_subject(mlist, msg, msgdata)
File "/home/mailman-2.1/Mailman/Handlers/CookHeaders.py", line 262, in
prefix_subject
h.append(s, c)
File "/home/mailman-2.1/pythonlib/email/Header.py", line 285, in
append
s = s.encode(outcodec, errors)
LookupError: unknown encoding: gb2312

Mar 04 07:35:02 2005 (4008) SHUNTING:
1109943290.6219399+5bd427b49515b41d7f44df52f67a2e0837d60514

-------------------------------------------------------------
Darren Young | http://www.chicagogsb.edu |
Senior UNIX Administrator | darren.young at chicagogsb.edu |
University of Chicago GSB | darren.young at gsb.uchicago.edu |
-------------------------------------------------------------

Search Discussions

  • Brad Knowles at Mar 4, 2005 at 5:08 pm

    At 10:53 AM -0600 2005-03-04, Young, Darren wrote:

    LookupError: unknown encoding: gb2312
    Googling for this string returns the page at
    <http://mail.python.org/pipermail/mailman-developers/2002-December/014223.html>
    as the first hit. Doing a bit more searching of the archives, and
    you find
    <http://mail.python.org/pipermail/mailman-users/2004-September/039235.html>.

    --
    Brad Knowles, <brad at stop.mail-abuse.org>

    "Those who would give up essential Liberty, to purchase a little
    temporary Safety, deserve neither Liberty nor Safety."

    -- Benjamin Franklin (1706-1790), reply of the Pennsylvania
    Assembly to the Governor, November 11, 1755

    SAGE member since 1995. See <http://www.sage.org/> for more info.
  • Mark Sapiro at Mar 4, 2005 at 5:25 pm

    Young, Darren wrote:
    Can anyone explain this one to me?

    Mar 04 07:35:02 2005 (4008) Uncaught runner exception: unknown encoding:
    gb2312
    Mar 04 07:35:02 2005 (4008) Traceback (most recent call last): <snip>
    File "/home/mailman-2.1/Mailman/Handlers/CookHeaders.py", line 74, in
    process
    prefix_subject(mlist, msg, msgdata)
    File "/home/mailman-2.1/Mailman/Handlers/CookHeaders.py", line 262, in
    prefix_subject
    h.append(s, c)
    File "/home/mailman-2.1/pythonlib/email/Header.py", line 285, in
    append
    s = s.encode(outcodec, errors)
    LookupError: unknown encoding: gb2312
    Someone has posted a message to the list with the Subject: encoded in
    the gb2312 (Chinese) character set. It appears your Python doesn't
    support this character set, but it also looks like the code in
    CookHeaders.py protects against LookupError, so I'm not sure what's
    going on in detail.

    --
    Mark Sapiro <msapiro at value.net> The highway is for gamblers,
    San Francisco Bay Area, California better use your sense - B. Dylan
  • Stephen J. Turnbull at Mar 8, 2005 at 8:03 am
    "Mark" == Mark Sapiro <msapiro at value.net> writes:
    Mark> Someone has posted a message to the list with the Subject:
    Mark> encoded in the gb2312 (Chinese) character set. It appears
    Mark> your Python doesn't support this character set, but it also
    Mark> looks like the code in CookHeaders.py protects against
    Mark> LookupError, so I'm not sure what's going on in detail.

    In vanilla 2.1.5 there are a couple of paths to that error, I forget
    the details, but the test in CookHeaders.py definitely didn't protect
    all of them. I posted a bug report to the tracker about one I found
    months ago.

    I'm fairly sure that Kikuchi-san fixed this later as part of some
    other changes, so you could upgrade, or look for my bug report if I'm
    wrong about the fix.


    --
    Institute of Policy and Planning Sciences http://turnbull.sk.tsukuba.ac.jp
    University of Tsukuba Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
    Ask not how you can "do" free software business;
    ask what your business can "do for" free software.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupmailman-users @
categoriespython
postedMar 4, '05 at 4:53p
activeMar 8, '05 at 8:03a
posts4
users4
websitelist.org

People

Translate

site design / logo © 2023 Grokbase