> There may be an issue with your MemberAdaptor. With
> OldStyleMemberships.py, accented characters are accepted and stored as
> themselves in the usernames dictionary.

Yes you are correct Mark, this escaping is done by MysqlMemberships.py

    def escape(self, value):
        # transforms accents into html entities (é)
        # TODO: find out which language is current (here: uses iso-8859-1)
        value = Utils.uncanonstr(value)
        # addslashes before " and '
        return MySQLdb.escape_string(value)

the difficulty is that MySQLdb.escape_string crashes if given non-ascii text.

So I'm modifying MysqlMemberships.py (rev. 94) so that we canonstr()
back in getMemberName().
However it's a not ideal; I don't like that idea very much as it means
that inside the db it is stored as è. Should probably be utf-8.

-- Fil
_______________________________________________
Mailman-Developers mailing list
[email protected]
http://mail.python.org/mailman/listinfo/mailman-developers
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: 
http://www.mail-archive.com/mailman-developers%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-developers/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp

Reply via email to