[Mailman-Users] Unknown encoding error

Mark Sapiro msapiro at value.net
Fri Mar 4 18:25:55 CET 2005

Young, Darren wrote:

>Can anyone explain this one to me?
>Mar 04 07:35:02 2005 (4008) Uncaught runner exception: unknown encoding:
>Mar 04 07:35:02 2005 (4008) Traceback (most recent call last):
>  File "/home/mailman-2.1/Mailman/Handlers/CookHeaders.py", line 74, in
>    prefix_subject(mlist, msg, msgdata)
>  File "/home/mailman-2.1/Mailman/Handlers/CookHeaders.py", line 262, in
>    h.append(s, c)
>  File "/home/mailman-2.1/pythonlib/email/Header.py", line 285, in
>    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

More information about the Mailman-Users mailing list