webmin/usermin

Translation issue #2

DrCarsonBeckett opened this issue · 5 comments

There seems to be an issue with the german umlauts ("ö ä ü ß") within usermin.
Better to say, still (in regard to #62 ). But its only under a special circumstance.

Folder gets shown as:

Entw&APw-rfe

Should be:

Entwürfe

I tested a bit around and noticed it only gets displayed wrong, meaning encoded in UTF-7 "code" instead of the direct umlaut, if the folder is written with directly with a umlaut. And with that I am talking about written directly like "gelöscht" in Debian and not coded in UTF-7 like "gel&APY-scht".
I noticed that because one of my mails shows that folder wrong and the other one shows it correctly. I tried to rename the folder in Usermin and Outlook (also in iOS), but it didn't help.
So I checked via SSH if there was something wrong and noticed the mentioned thing. So I changed the folder name into UTF-7 code and it gets shown correctly in Usermin then (and still correct in iOS and Outlook).
So there is still an issue with that. ☹️

System:
Debian 10

Webmin-Version | 1.962
Usermin-Version | 1.812
Virtualmin Version | 6.14
Authentic theme version | 19.62

@iliarostovtsev wasn't this fixed in the Usermin 1.812 release?

It was. If the folder were encoded in UTF-7, it got displayed wrong. Which is fixed now.
The issue is if the folder is not encoded in UTF-7, then its displayed wrong.
Meaning, if the folder is written "gel&APY-scht" then its good.
If its written "gelöscht", then its displayed wrong in Usermin.
I checked that directly in Debian (SSH) via ls.

@iliarostovtsev wasn't this fixed in the Usermin 1.812 release?

I assumed it was fixed.

If its written "gelöscht", then its displayed wrong in Usermin.

Well, it's displayed correctly for me. However, the folder with utf-8 letter ö doesn't load for me, when clicked, and now, I see the source of the problem but it sounds different to what you have?

root@debug-debian10-pro:/home/debian10-pro/Maildir# ls -lsa 
total 80
 4 drwx------ 10 debian10-pro debian10-pro  4096 Nov 21 18:18  .
 4 drwxr-x--- 15 debian10-pro debian10-pro  4096 Nov 21 18:12  ..
 4 drwx------  2 debian10-pro debian10-pro  4096 Nov 21 18:12  cur
 4 -rw-------  1 debian10-pro debian10-pro   432 Nov 21 18:18  dovecot.index.cache
 4 -rw-------  1 debian10-pro debian10-pro   576 Nov 21 18:13  dovecot.index.log
 4 -rw-------  1 debian10-pro debian10-pro   856 Nov 21 18:17  dovecot.list.index
 4 -rw-------  1 debian10-pro debian10-pro   992 Nov 21 18:18  dovecot.list.index.log
12 -rw-------  1 debian10-pro debian10-pro 11844 Nov 21 18:17  dovecot.list.index.log.2
 4 -rw-------  1 debian10-pro debian10-pro   163 Nov 21 18:12  dovecot-uidlist
 4 -rw-------  1 debian10-pro debian10-pro     8 Nov 21 18:17  dovecot-uidvalidity
 0 -r--r--r--  1 debian10-pro debian10-pro     0 Nov 21 18:12  dovecot-uidvalidity.5fb99ef2
 4 drwx------  5 debian10-pro debian10-pro  4096 Nov 21 18:12  .Drafts
 4 drwx------  5 debian10-pro debian10-pro  4096 Nov 21 18:17 '.Gel&APY-scht-2'
 4 drwx------  2 debian10-pro debian10-pro  4096 Nov 21 18:16  .Gelöscht-1
 4 drwx------  2 debian10-pro debian10-pro  4096 Nov 21 18:12  new
 4 drwx------  5 debian10-pro debian10-pro  4096 Nov 21 18:12  .Sent
 4 -rw-r--r--  1 debian10-pro debian10-pro    18 Nov 17 07:05  subscriptions
 4 drwx------  2 debian10-pro debian10-pro  4096 Nov 17 07:15  tmp
 4 drwx------  5 debian10-pro debian10-pro  4096 Nov 21 18:12  .Trash

image

Perhaps, your browser enforcing some encoding? Try different browser.

Oh, I see.. try the following .. open /etc/dovecot/conf.d/10-mail.conf and tweak default mail location value from:

mail_location = maildir:~/Maildir

.. to:

mail_location = maildir:~/Maildir/:UTF-8

.. and restart Dovecot:

systemctl restart dovecot