querying unicode data (sqlite) with python

T

Tzury

Given an sqlite db that stores the strings data such as names, etc.
encoded in Unicode.
How do I write a sql query statement with 'LIKE' or '=' operators and
insert the Unicoded name.

for example:

in table MY_TABLE, in column COL01 there is a value "¿Habla español?"
within python I represent this value as u'\u00bfHabla espa\u00f1ol?'

if I wish to produce a query that will fetch this row something like
"SELECT * FROM MY_TABLE WHERE COL01="¿Habla español?" and I want it to
be done dynamically according to data I receive from a tcp socket.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,983
Messages
2,570,187
Members
46,747
Latest member
jojoBizaroo

Latest Threads

Top