Re: sql using characters like é and ã

fumanchu fumanchu at amor.org
Tue Dec 13 10:48:47 EST 2005


Diez B. Roggisch wrote:
> "Select * from table where name like '%s%%'" %
> "José".decode("latin-1").encode("utf-8")

Make it easy on yourself and encode the whole statement:

    conn.execute(query.encode('utf8'))


Robert Brewer
System Architect
Amor Ministries
fumanchu at amor.org




More information about the Python-list mailing list