File Manager changes file encoding

Hi,

File manager changes encoding of files on save. When I save a edited file in file manager it changes the file encoding to UTF-8, and makes a total mess in my files! The file encoding must not be changed! Maybe there could be config setting regarding what encoding I want to use as default, with one option like "don't change". I live in Sweden and the encoding change brakes many things in our systems due to our Swedish characters like ÅÄÖ. There are several places I cant use UTF-8 so all my coding is done in ISO-8859-1 / Latin-1.

I use Virtualmin Pro and language is set to English US (EN), not the UTF-8. My computers runs Windows 10 Pro and my browser is Firefox 52.1.0 ESR 32-bit.

I have found a few other issues in Authentic Theme, do you want me to make an issue for each one or can I put them in one issue?

Best regards, Leffe

Status: 
Closed (fixed)

Comments

Ilia's picture
Submitted by Ilia on Sat, 04/29/2017 - 16:49

Alright, I will take a look tomorrow. But I have a question though? What if you switch to the old theme, isn't doing the same??

Yeah go ahead and put it all out here.

Hi, Thanks! No in the old Framed Theme the save works, it does not change the encoding. I just tried in both themes.

//Leffe

Ilia's picture
Submitted by Ilia on Mon, 05/01/2017 - 12:05

Here is the fix for you. It's File Manager patch. You would need to use this Pull Request to test it and make sure that it does what you need.

Ilia's picture
Submitted by Ilia on Mon, 05/01/2017 - 12:05

Status: Active » Closed (fixed)

Hi Ilia,

I have now tried the patch and it does work fine! Although I added a semi-colon at the end of new line 31. I also did see that the path was wrong:

!/usr/local/bin/perl

In my case it should be:

!/usr/bin/perl

Thanks! //Leffe

Ilia's picture
Submitted by Ilia on Mon, 05/01/2017 - 17:13

Yes, thanks. I added semi-column on the other commit few minutes later. For some reason we still have shebang pointing to /local/, I think it should be changed.