Skip to content

Enable unicode normalization on track data before matching

Yerrey Dev requested to merge yerrey/elisa:search-normalization into release/21.12

Normalizes the value of mainValue, artistValue and oneArtist with Qt provided normalization before it is compared to mFilterExpression's mFilterText and used for search. mFilterText is also normalized before it's being matched against.

With this fix the provided "Björk" file in the bug report is correctly found when searching "Björk" in the search bar.


I have read parts of the documentation of unicode normalization (, but I'm not an expert on the matter, so if someone knows that QString::NormalizationForm_C would work better than the proposed QString::NormalizationForm_KC please let me know.

BUG: 391462

Merge request reports