Re: REGEXP and unicode weirdness

2010-01-21 Thread fsb
On 1/21/10 10:27 AM, "John Campbell" wrote: > I want to find rows that contain a word that matches a term, accent > insensitive: I am using utf8-general collation everywhere. > > attempt 1: > SELECT * FROM t WHERE txt LIKE '%que%' > Matches que qué, but also matches 'queue' > > attempt 1.5: >

Re: REGEXP and unicode weirdness

2010-01-21 Thread Paul DuBois
On Jan 21, 2010, at 9:27 AM, John Campbell wrote: > I want to find rows that contain a word that matches a term, accent > insensitive: I am using utf8-general collation everywhere. > > attempt 1: > SELECT * FROM t WHERE txt LIKE '%que%' > Matches que qué, but also matches 'queue' > > attempt 1

REGEXP and unicode weirdness

2010-01-21 Thread John Campbell
I want to find rows that contain a word that matches a term, accent insensitive: I am using utf8-general collation everywhere. attempt 1: SELECT * FROM t WHERE txt LIKE '%que%' Matches que qué, but also matches 'queue' attempt 1.5: SELECT * FROM t WHERE txt LIKE '% que %' OR LIKE 'que %' OR LIKE