Bug report #21250
QGIS 3 Layer Filter error with Unicode field name
|Affected QGIS version:||3.5(master)||Regression?:||Yes|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||29068|
If a user has a shape file with a field name that has an Umlaut in it ("EIGENTÜMER") and they make a Filter on that layer "EIGENTÜMER" = 'MEINFIRMA' then the attribute table will correctly reflect the filter (with many returns) but no geometries will appear on the canvas. Filtering by a field with a normal ASCII name results in normal behavior. (I have warned the user that field names should never have unicode in them.)
#2 Updated by Heather Hillers 11 months ago
Here is a 4 point shapefile with 2 text fields- EIGENTÜM and EIGEN, each having the same text values. Compare the filter "EIGENTÜM"='APPLE' with the filter "EIGEN"='APPLE'.
#8 Updated by Heather Hillers 11 months ago
Encoding on the Layer is set to System. I am on Windows 7. The System Encoding should be latin1.
From the Legend, I right clicked on the layer and added the filter.
I also tested by opening layer properties and adding a Provider Feature Filter in the Source Tab. The same behavior resulted.