[Mailman-Users] HELP me for chinese subject in mailman 2.1 please!

Ares Liu gege at nst.pku.edu.cn
Sat Aug 23 19:19:49 CEST 2003

Hello, everyone

When I use chinese subject, mailman 2.1 will get an error as follow:

Aug 24 01:11:33 2003 (2466) Uncaught runner exception: unknown encoding: 
Aug 24 01:11:33 2003 (2466) Traceback (most recent call last):
  File "/var/mailman/Mailman/Queue/Runner.py", line 105, in _oneloop
    self._onefile(msg, msgdata)
  File "/var/mailman/Mailman/Queue/Runner.py", line 155, in _onefile
    keepqueued = self._dispose(mlist, msg, msgdata)
  File "/var/mailman/Mailman/Queue/IncomingRunner.py", line 129, in _dispose
    status = self._dopipeline(mlist, msg, msgdata, pipeline)
  File "/var/mailman/Mailman/Queue/IncomingRunner.py", line 152, in 
    sys.modules[modname].process(mlist, msg, msgdata)
  File "/var/mailman/Mailman/Handlers/CookHeaders.py", line 74, in process
    prefix_subject(mlist, msg, msgdata)
  File "/var/mailman/Mailman/Handlers/CookHeaders.py", line 253, in 
    h.append(s, c)
  File "/var/mailman/pythonlib/email/Header.py", line 243, in append
    s = s.encode(outcodec)
LookupError: unknown encoding: gb2312

How to solve this error?

Thanks very much!


Nuclear Science & Technology Virtual Research Center

More information about the Mailman-Users mailing list