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: 
Fixed (pending)

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:30 Pro Licensee

Portuguese too

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

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 Pro Licensee

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 Pro Licensee

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 Pro Licensee

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.

brunno's picture
Submitted by brunno on Tue, 02/26/2019 - 03:32 Pro Licensee

Any updates from that problem?

brunno's picture
Submitted by brunno on Fri, 03/01/2019 - 03:25 Pro Licensee

JamieCameron,

I try, full reload, clear cache, three diferent browsers, privacy mode, Windows PC, and Android smart phone, none of this worked, by the way, I try too change from an language to another, this works correctly without any refresh or any full clear cache (but shows the strange characters when set to pt-br.utf8)
Ilia's picture
Submitted by Ilia on Fri, 03/01/2019 - 03:32

@brunno. I can confirm that Jamie's patch fixes issues for UTF-8 charset.

Speaking about navigation menu, only few places has strange � appearing, for example in:

�ndex de Servidores Webmin P�ginas do Manual Parti��es em Discos Locais Configura��o de Arranque do Linux

All the rest looks just fine. If you tell me how to spell the above correctly, I will patch it for you!

brunno's picture
Submitted by brunno on Fri, 03/01/2019 - 05:33 Pro Licensee

Hi Illia,

�ndex de Servidores Webmin - Índice de Servidores Webmin P�ginas do Manual - Páginas do Manual Parti��es em Discos Locais - Partições em Discos Locais Configura��o de Arranque do Linux - Configuração de Arranque do Linux

Tem também/Also: Configura��o do Webmin - Configuração do Webmin Configura��o de Rede - Configuração de Rede Configura��o de Inicializa��o SysV - Configuração de Inicialização SysV Administra��o de Impressoras - Administração de Impressoras Configura��o do Sendmail - Configuração do Sendmail There are some others menu items not translated, how to suggest the correct in this cases?

brunno's picture
Submitted by brunno on Sat, 03/30/2019 - 20:02 Pro Licensee

Any updates about that problem?

brunno's picture
Submitted by brunno on Fri, 04/05/2019 - 11:50 Pro Licensee

Have you any updates about that?

We're still working on switching all languages to UTF-8 , which will solve this once and for all.

brunno's picture
Submitted by brunno on Mon, 04/08/2019 - 15:01 Pro Licensee

Ok, do you have any predictions of deadline?

Ilia's picture
Submitted by Ilia on Mon, 05/27/2019 - 02:13

Your issue is the part of general issue that has to be solved at first.

We could fix it as many times as we can but it would break again sooner or later, unless initial language files (those that are exposed for the users to commit) are stored in UTF-8.

I'd recommend switching to English for now.

Sorry about that.

Ilia's picture
Submitted by Ilia on Thu, 08/01/2019 - 05:11

Project: Authentic Theme » Webmin Core

Even EN_GB.UTF-8 seems to be broken now.

Upgraded to latest theme couple of days ago and since then facing this irritating issue:

Especially when a subserver arrow has to be shown on the left-hand side menu and also on the editor (when you try to edit a webserver directive from VM->Services->Configure SSL website) it shows wierd capital A with some markup on top of A as if it is a french/german letter.

I have even tried changing the locale and fonts but still no cigar.

Any pointer to fix this will be highly appreciated.

Many Thanks, Rav

Development version??? Does that mean it is not a stable version?

And when you say to install it, what happens to the existing stuff? Is it a simple override or more complicated than that? Are there any guide/set of commands that I need to use? As I will try to use it on Test server first before I take it on Prod.

I am unable to attach any picture here or else I could have shown you exactly how the blinking cursor has changed to an irritating "Â". Do you see that curve on top of A and all this is stuck to the cursor which means when I am editing anything, I am not sure where exactly I am.

So I was wondering if there a way I can just rever my change to back to where I was?

Many Thanks, Rav

Ilia's picture
Submitted by Ilia on Mon, 06/01/2020 - 07:21

Upgraded to latest theme couple of days ago and since then facing this irritating issue

Once you upgrade to latest theme version and ignored the warning below:

Either downgrade to the previous theme version or install Webmin devel.

What language do you have set for your Webmin and when exactly do you see that irritating "Â" letter?

So I was wondering if there a way I can just revert my change to back to where I was?

Yes, run the following commands:

cd /usr/libexec/webmin/authentic-theme
./theme-update.sh -release:19.47

Hi,

Yes, this is what happened. I got this error message and I ignored the warning because I was unable to go to so-called, "first using console, by running update-from-repo-.sh". It was not clear enough for me to understand where is the console, which directory to be in to run that command (I tried few options, but it did not work so I just went ahead and ran upgraded it.

Even now the path that you have given me is not working for me. I did some digging and I have webmin folder under /etc.

So I went to: /etc/webmin/authentic-theme# but here, all I have is: favorites-prod.json, settings.js, settings-prod, stats-prod.json and stats-tabsuk.json

So running the ./theme-update.sh -release:19.47 gives me following error: bash: ./theme-update.sh: No such file or directory

So what do I do next?

Many Thanks, Rav

Ilia's picture
Submitted by Ilia on Mon, 06/01/2020 - 13:12

So what do I do next?

You need to run update script from /usr/libexec/webmin/authentic-theme directory.

You could also run:

yum install --reinstall webmin
Ilia's picture
Submitted by Ilia on Mon, 06/01/2020 - 13:13

Sorry, I meant to say that for RHEL systems command is:

yum reinstall webmin

Sorry, but even yum won't work for me as I am on Ubuntu 18.04

And why reinstall webmin? Will it not screw up everything? I remember the reinstallation always recommends not to overwrite files.

I think all I need is to revert back and not reinstall everything.

Ilia's picture
Submitted by Ilia on Tue, 06/02/2020 - 12:23

Sorry, but even yum won't work for me as I am on Ubuntu 18.04

Original post marked as CentOS 7.

And why reinstall webmin?

It has older theme version

Will it not screw up everything? I remember the reinstallation always recommends not to overwrite files.

No!

I think all I need is to revert back and not reinstall everything.

Go ahead and run the following command to revert it.

cd /usr/share/webmin/authentic-theme
./theme-update.sh -release:19.47

Looked like it tried to work but then it all disappeared.

After I upgraded, I logged in Webmin and I got a popup saying looks like you are using wrong character set which will display strange character "A", click on Virtualmin configuration and go to *******

As soon as I clicked on the Virtualmin configuration, the pop up died and now I don't know what changes I am supposed to make/cross-check.

Can you pls share the pop-up message.

Many Thanks, Rav

Ilia's picture
Submitted by Ilia on Tue, 06/02/2020 - 14:01

Go to Webmin/Change Language and Theme and make sure that you have UTF-8 language set.

I hope you meant, "Language and Locale" because I can't see Language and Theme.

And the language there (in the drop-down) shows: English UK (EN_GB.UTF-8 And FYI, I also have: Character set for HTML pages Determined by language
Use language specified by browser? Yes

But I still have the same issue, unless I am suppose to restart any particular service(s).

Many Thanks, Rav

Ilia's picture
Submitted by Ilia on Tue, 06/02/2020 - 15:02

Go to Webmin/Webmin Users, click on your current username and enable Change Language and Theme module in Available Webmin modules tab. Afterwards, it should appear in navigation menu. If it doesn't, click the link on the navigation menu to refresh the modules and reload the browser's page afterward.

I could not follow the instructions because the menus and options were not available as you suggested.

However, I believe your last instruction was only to enable "Change Language and Theme" uner the Webmin menu. Right? If that is the case then I can see that option now. Not sure why and how I missed it earlier - my apologies.

Now based on your previous suggestion, I went to Webmin/Change Language and Theme and I changed it from:

Webmin UI language Personal choice: English UK (EN_GB) --> Global language .. English UK (en_GB.UTF-8) Webmin UI locale is set to: Automatic, based on selected language Webmin UI theme is set to: Global theme (Authentic Theme)

But I still see the strange "A" in command prompt... Am I suppose to restart any services?

Many Thanks: Rav

Ilia's picture
Submitted by Ilia on Wed, 06/03/2020 - 04:18

Status:
Active
»
Closed (works as designed)

Okay, I see what your issue now. Go to Webmin Configuration/Language and Locale and change Utilizar idioma especificado pelo navegador ? to Não.

For your information, upcoming Webmin release will have full translations for many languages including Portuguese.

Ilia's picture
Submitted by Ilia on Wed, 06/03/2020 - 05:08

By the way, make sure to upgrade to the latest Webmin 1.942, as using 1.900 might result in security related issues.

I think I am on the latest version. This is what I get when I do: dpkg -l 'webmin*'

||/ Name Version Architecture Description +++-=====================================================================-==========================- ii webmin 1.942 all web-based administration interface for Unix systems

Plus a lot of other entries as well.

I have also changed: Use language specified by the browser? to No.

I have also restarted webmin using: /etc/init.d/webmin restart and I have also restarted Apache using: service apache2 restart

But when I go to Virtualmin -> Services -> Configure SSL Website and click on Edit Directives, which gives me a command prompt like screen. I still see the strange A.

Apart from this: On Virtualmin under all my domains, when I try to see the subdomains, I see a strange character just before the subdomains something like: àt t is not standard t.. it is more like the jesus cross.

So issue still not resolved. Right?

Many Thanks, Rav

Status:
Closed (works as designed)
»
Active

Sorry just realised someone closed this - this is NOT working as designed. Or is it?

Not sure if this should be closed or still be open - so reopeneing it, just to be on the safer side.

Ilia's picture
Submitted by Ilia on Wed, 06/03/2020 - 16:23

Status: Active » Fixed (pending)

You have two options for now, either upgrade to devel version of Webmin by running the following command or wait until the official release, which is surely going to fix this issue.

yum update https://download.webmin.com/devel/rpm/webmin-1.943-1.noarch.rpm

Note: I have tried this devel package on many different install and it worked flawlessly for me. Anyway, if it goes wrong you can always run the following command to downgrade:

yum downgrade webmin

It's safe to run, just as reinstall, which keeps your configuration files intact. No worries here.

Issue if fixed and must be closed as upcoming (or currently devel) version of Webmin doesn't have these issues any more.

If you go with devel version, try to enable machine translations to see how it goes.

Looks like you are trying to respond 2 issues (Portugues and English) with one message.

I hope same setting/option will work for English as well, I will give it a shot and let you know how it goes.

Hi,

Just a quick update:

I did not do either of the 2 last options provided in the last message and my issue has been fixed now.

Looks like everything that we did earlier, including No for the browser setting and a hard reboot to the server has fixed the issue.

Thanks a lot for your continuous support and regular update. I sincerely appreciate it and people like you make Virtualmin really special.

Thanks once again for all the help.

Many Thanks, Rav