On vendredi 05 octobre 2007, Mark Sapiro wrote:
> However, it is probably simpler to creat som SQL query which will write
> a membership list to a flat file and then use Mailman's bin/sync_members
> to update the Mailman list membership.
Using sync_members on a file containing names and addresses, I get :
Traceback (most recent call last):
File "/usr/sbin/sync_members", line 286, in ?
main()
File "/usr/sbin/sync_members", line 259, in main
s = email.Utils.formataddr((name, addr)).encode(enc, 'replace')
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe9 in position 3:
ordinal not in range(128)
Is this script able to handle non-ascii chars?
--
Frédéric
http://www.gbiloba.org
------------------------------------------------------
Mailman-Users mailing list
[email protected]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe:
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
Security Policy:
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp