[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
webpages.

I searched the mailman-users list, and find the same problem posted before.
http://www.mail-archive.com/mailman-users@python.org/msg39747.html

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
http://mail.python.org/pipermail/mailman-i18n/2003-September/000976.html). 

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.

Regards,
Fan


-- 
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