Login with GeoServer password with umlaut fails
Describe the bug The plugin seems to handle password encodings incorrectly for GeoServer login.
To Reproduce Steps to reproduce the behavior:
- Have a GeoServer user with password
ääääääää - Try to use it with the plugin
CRITICAL Could not connect to GeoServer Megamap: please check credentials
Expected behavior Login should work with any valid password string.
Environment info (please complete the following information):
- OS: Linux
- QGIS version: 3.22
- Bridge version: 4.4.1
- Python version: 3.11
I won't have time to fix this one, nothing fatal for us ;)
Thanks for reporting @kannes, I will look into this some day... Perhaps there is a Qt library thing that I don't know of that deals with character encodings properly. Do you know what the default encoding of your client (QGIS, your OS, etc.) is?
I am not 100% sure that this was the exact case when I reported it but I am fairly sure:
$ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=de_DE.UTF-8
LC_TIME=de_DE.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=de_DE.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=de_DE.UTF-8
LC_NAME=de_DE.UTF-8
LC_ADDRESS=de_DE.UTF-8
LC_TELEPHONE=de_DE.UTF-8
LC_MEASUREMENT=de_DE.UTF-8
LC_IDENTIFICATION=de_DE.UTF-8
LC_ALL=
$ grep -i locale QGIS3.ini
...
[locale]
globalLocale=
userLocale=de