[Mailman-Developers] Error when processing Chinese emails

Patrick Lam patrick at med.cuhk.edu.hk
Mon Feb 16 04:16:27 EST 2004


Dear Experts,

 

            When one of my user sent Chinese emails (both contents and
subject), my Mailman v2.1.4 give the following errors:

 

Feb 16 09:26:05 2004 (18754) SHUNTING:
1076835446.5623169+add7c7b00843e724cbea05418920ebc84ce5166d

Feb 16 16:30:47 2004 (18754) Uncaught runner exception: unknown encoding:
big5_tw

Feb 16 16:30:47 2004 (18754) Traceback (most recent call last):

  File "/home/mailman/Mailman/Queue/Runner.py", line 110, in _oneloop

    self._onefile(msg, msgdata)

  File "/home/mailman/Mailman/Queue/Runner.py", line 160, in _onefile

    keepqueued = self._dispose(mlist, msg, msgdata)

  File "/home/mailman/Mailman/Queue/IncomingRunner.py", line 130, in
_dispose

    more = self._dopipeline(mlist, msg, msgdata, pipeline)

  File "/home/mailman/Mailman/Queue/IncomingRunner.py", line 153, in
_dopipeline

    sys.modules[modname].process(mlist, msg, msgdata)

  File "/home/mailman/Mailman/Handlers/CookHeaders.py", line 74, in process

    prefix_subject(mlist, msg, msgdata)

  File "/home/mailman/Mailman/Handlers/CookHeaders.py", line 262, in
prefix_subject

    h.append(s, c)

  File "/home/mailman/pythonlib/email/Header.py", line 285, in append

    s = s.encode(outcodec, errors)

LookupError: unknown encoding: big5_tw

 

 

            Which file I should modify to fix that problem??

 

            Thank you very much for your kind help and attention!

 

Regards,
Patrick
------------------------------------------------------

Patrick Lam Sze Fan
Computer Officer II
Medical Information Technology,
Faculty of Medicine,
The Chinese University of Hong Kong
Tel:21455213   Fax:26352521
------------------------------------------------------

 



More information about the Mailman-Developers mailing list