Since SQLite FTS4/FTS5 tokenizer=unicode61 gives us:
a=A=ą=Ą=ä=Ä ...
z=ż=ź=Z=Ż=Ź=Ž=ž ...
etc...
Why not l=ł=L=Ł ??? Isn't it a bug?
How to query SQLite on keybord not having Polish chars ł/Ł? For example querying for name Żabczyński like "zabczynski" - got result, but for name Włast like "wlast" - 0 result (should be like hundreds...) I have my walkaround in PHP, but it does not working with words with l and ł in it, like 'opłacalny'.
<?
$q = $_POST["q"];
//
$pat = '/(\b\w*[lł]\w*\b)/iu';
$q = preg_replace_callback($pat,function($macz){
return "(" . str_replace("ł","l",$macz[1]) . "* OR " . str_replace("l","ł",$macz[1]) . "*)";
},$q);
// so query 'andrzej wlast' looks 'andrzej (wlast* OR włast*)'
...
$sql = "SELECT ...";
$pdo = $db->prepare($sql);
//
$pdo->execute([":q" => "$q*"]);
//
$odp = $pdo->fetchAll(PDO::FETCH_ASSOC);
?>
Any idea? You can't set encoding in sqlite like utf8_general_ci, utf8_polish_ci, utf8_unicode_ci... Or yes, it's possible?
Is there a way to solve it in Python? No ICU on platform (shared server).