[Mailman-Users] 'gb2312' codec can't decode bytes in position 0-1: illegal multibyte sequence

Fan Liu fan.d.liu at gmail.com
Thu Apr 17 10:18:43 CEST 2008

Hi all,

I'm using Mailman 2.1.9 with python 2.4 and debian lenny.

Since there're posts encoded with 'gb2312', which can be decoded fine in
mutt. However, the archived mails, by pipermail, was not diplayed well in

I searched the mailman-users list, and find the same problem posted before.

The resolution suggested to intall cjkcodecs, which is provided by python2.4
now, and add 
add_language('zh_CN', _('Chinese (China)'), 'gb2312')
in Defaults.py (as referred to an earlier post

Then I run 
arch --wipe mylist

I encountered such error,

"UnicodeDecodeError: 'gb2312' codec can't decode bytes in position 0-1: illegal
multibyte sequence"

Any ideas why?  Thanks in advance.


Fan Liu
Ph.D Student of Star Formation in Galaxies Group,
Purple Mountain Observatory,
2# West Beijing Road, Nanjing, China
Email: fanliu at pmo.ac.cn
Homepage: http://sfig.pmo.ac.cn/~fliu/

More information about the Mailman-Users mailing list