"william sqllite" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > We're trying to get a big dictionary website running on SQLite (was > MySQL), but we ran into some trouble that we can't really seem to fix. > > While we're using UTF-8 coding, a query like > > SELECT * FROM language WHERE word like '%o%' > > doesn't find words with Ö or ö, while it did in MySQL. Also the case > with for example a for àáâãä and å. > > Is it just a simple configuration thing maybe? Or is sqlite just not > ready for these kind of searches?
SQLite doesn't support these kinds of searches. It treats o and ö as two distinct unrelated characters. You could write a custom function that would convert accented characters to their unaccented counterparts (though Swedes aren't likely to appreciate your treating å and a as the same letter). Then you can use it like this: SELECT * FROM language WHERE StripAccents(word) like '%o%'; Igor Tandetnik
_______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users