OK I get something working with the following:

    def escape(self, value):
        try:
            b = unicode(value,'utf-8')
        except:
            try:
                b = unicode(value,'latin-1')
            except:
                b = value
        return unicode(MySQLdb.escape_string(b.encode('utf-8')),'utf-8')


will try a little more and commit if it works
_______________________________________________
Mailman-Developers mailing list
[email protected]
http://mail.python.org/mailman/listinfo/mailman-developers
Mailman FAQ: http://wiki.list.org/x/AgA3
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://wiki.list.org/x/QIA9

Reply via email to