Strange characters on the webmin menu in Brazilian Portuguese

The accented characters are not displayed correctly in the webmin menu with the authentic theme

Status: 
Active

Comments

Ilia's picture
Submitted by Ilia on Thu, 01/31/2019 - 15:53

Hi,

It seems that pt_BR language file has incorrect/damaged chars in it, and/or wrong encoding (as it happens in all themes).

Jamie, can we do something about it? Can we finally drop two variants of the language files, and completely remove all non-utf8 encodings?

Do you see this for regular Portuguese as well, or only Brazilian?

brunno's picture
Submitted by brunno on Sat, 02/02/2019 - 13:37

Characters are also invalid in Dashboard (picture WebminDashboardPT.png included now)

Ilia's picture
Submitted by Ilia on Wed, 02/06/2019 - 05:53

I changed the language to Portuguese (Brazilian) UTF-8 and my Dashboard looks okay, from what I can tell.

Is this correct?

Atualizações de pacotes: 99 atualizações de pacotes estão disponíveis, dos quais 20 são atualizações de segurança.

Make sure that you really have UTF8 set and not overwriting it using Webmin/Change Language and Theme.

Ilia's picture
Submitted by Ilia on Wed, 02/06/2019 - 05:54

If you open browser's console and run: get_server_data('charset'), what is the output that you get?

What browser are you using?

brunno's picture
Submitted by brunno on Wed, 02/06/2019 - 12:07

In webmin it is UTF-8 too.

Some parts of page are correct (as the part you copy), but not the marked parts

Chrome console: get_server_data('charset') "UTF-8"

One thing I noticed is that switching to brazilian portuguese works OK, but only if you do a full reload of the page after switching. Otherwise the left menu uses the wrong character set..

brunno's picture
Submitted by brunno on Thu, 02/07/2019 - 01:36

To me even loggin out and login in again, it still show me the strange characters.

Ilia's picture
Submitted by Ilia on Thu, 02/07/2019 - 04:31

By going to Webmin/Webmin Configuration/Language and Locale what do you have set for:

  1. Character set for HTML pages
  2. Use language specified by browser?
brunno's picture
Submitted by brunno on Thu, 02/07/2019 - 11:08

Hi,

I changed it to English as you can see in 001inenglishutf8.png Then I changed to Brazilian Portuguese and the menu show the strange characters as in image 002changetoptbrutf8.png Then I logout and login again, it continues to show the strange characters, but the dashboard from virtualmin is correct now, as you can see in 003afterrelogindashboard.png

I found that I had to actually shift-reload the page to clear any caches.