Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In layer Filter "lower" function not working with driacritrical marks #58893

Open
2 tasks done
And121275 opened this issue Sep 27, 2024 · 2 comments
Open
2 tasks done
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter!

Comments

@And121275
Copy link

What is the bug or the crash?

In layer Filter "lower" function not working with driacritrical marks.
GPKG does not support ILIKE so my idea was to use lower function instated of ILIKE.
Everything is OK till text value doesn't contain driacritrical marks.
When I use layer filter: lower("City")='żytniów' i have no results.
When I use: lower("City")='Żytniów' OR lower("City")='ŻytniÓw' everything works fine
The goal is to easy filer large data with different large of letters in cities names.
Of course it is possible to convert cities name do lower letters in field calculator and then filtering will be easy.

Steps to reproduce the issue

Make simply gpkg, utf-8 dataset with text field City and attributes: Żytniów, ŻYTNIÓW, Paris, PARIS
Set layer Filter: lower("City")='żytniów' and see no results
Try layer Filter: lower("City")='paris' and see correct two results

Versions

Wersja QGIS
3.38.3-Grenoble
Rewizja QGIS
37f9e6e
Wersja Qt
5.15.13
Wersja Pythona
3.12.6
Wersja GDAL/OGR
3.9.2
Wersja PROJ
9.4.0
Wersja bazy danych Rejestru EPSG
v11.004 (2024-02-24)
Wersja GEOS
3.12.2-CAPI-1.18.2
Wersja SQLite
3.45.1
Wersja PDAL
2.6.3
Wersja klienta PostgreSQL
16.2
Wersja SpatiaLite
5.1.0
Wersja QWT
6.2.0
Wersja QScintilla2
2.14.1
Wersja systemu operacyjnego
Windows 11 Version 2009

Active Python plugins
db_manager
0.1.20
grassprovider
2.12.99
MetaSearch
0.3.6
processing
2.12.99

Supported QGIS version

  • I'm running a supported QGIS version according to the roadmap.

New profile

Additional context

No response

@And121275 And121275 added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Sep 27, 2024
@roya0045
Copy link
Contributor

Yeah the change would probably have to go through QLocal instead of QString, Not sure if there's an easy fix when dealing with localisation.

@elpaso
Copy link
Contributor

elpaso commented Sep 30, 2024

Seems to be working here:

immagine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter!
Projects
None yet
Development

No branches or pull requests

3 participants