fanticla has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks,
I changed my script to handle UTF characters (I just used ANSI) and to query a sqlite database. Now the following query does not properly work anymore:
$all = $dbh->selectall_arrayref("SELECT ID,col_1, col_2 FROM table WHE +RE LOWER(col_1) LIKE '$searching_string%'");
By characters in $searching_string such as äüö, the query does not match anymore.
If I remove LOWER, the query matches (lower matches lower, upper case matches upper case), but it does not match äÄ üÜ öÖ
What I am doing wrong? Any suggestions?
Thanks Cla
Update: I just noted that the query works perfectly (lower upper case) even without LOWER. This is true for Western europe characters (!!). The problem is still there for äÄ üÜ öÖ etc.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: sqlite utf lower
by ikegami (Patriarch) on Jun 07, 2010 at 21:26 UTC | |
by fanticla (Scribe) on Jun 07, 2010 at 22:17 UTC |