Usernames or group-names containing non-UTF-8 characters will always report "Could not look up user/group" in Web Admin's user or group lookup.
* If a user or group is created on a Latin-1 system, the name will include Latin-1 characters.
* When attempting to use Web Admin's user or group lookup, the data provided in the web form will be encoded with UTF-8 and sent to the server.
* Web Admin will then pass this UTF-8 data to Python 2's pwd.getpwnam() and grp.getgrnam() which, in turn, will attempt use the system's locale to interpret the characters. This of course fails.
Things to note:
* The command "useradd" normally only accepts ASCII
* If you connect using SSH, your locale will most of the time be brought along. That means if you SSH from a UTF-8 machine to a Latin-1 machine, you will get UTF-8.
* GNOME terminal has a bug which causes it to always run in UTF-8.
This is now fixed since Web Admin now runs in Python 3. This means that Web Admin automatically decodes the UTF-8 data from the browser to Unicode. Python 3's grp.getgrnam() and pwd.getpwnam() will then use these Unicode strings instead, which can without issue be encoded to whatever locale the system is using, if needed.
Tested using build 6679 on Ubuntu 20.04 with Latin-1 locale.
Works well. Could reproduce the issue on Ubuntu 18.04 with ISO 8859-15 and ThinLinc 4.12.0. After an upgrade to a nightly build it works fine. Also tested ASCII lookups, as well as failed lookups.