Page 1 of 1
MXdiags - file encoding
Posted: Wed 23 Mar 2022 6:04 am
by sfws
Content deleted
Re: MXdiags - file encoding
Posted: Wed 23 Mar 2022 8:57 am
by freddie
I've just checked on my system:
Code: Select all
root@weather:/opt/CumulusMX/MXdiags# file 20220323-054000.txt
20220323-054000.txt: HTML document, UTF-8 Unicode text, with very long lines
So it looks like UTF-8.
Have you tried using a terminal window, and a command such as 'cat' or 'more'?
Re: MXdiags - file encoding
Posted: Wed 23 Mar 2022 9:22 am
by mcrossley
It's a system provided logging service, but the encoding used (default) is UTF-8.
Re: MXdiags - file encoding
Posted: Wed 23 Mar 2022 10:29 am
by sfws
Content removed
Re: MXdiags - file encoding
Posted: Wed 23 Mar 2022 10:40 am
by freddie
sfws wrote: ↑Wed 23 Mar 2022 10:29 am
@freddie, yes I could use terminal, but you don't explain why the GUI software can't open the files
You didn't ask for an explanation - you asked for the encoding which I supplied. I suggested the terminal as an alternative.
Re: MXdiags - file encoding
Posted: Wed 23 Mar 2022 10:49 am
by mcrossley
sfws wrote: ↑Wed 23 Mar 2022 10:29 am
@mcrossley, utf-8 only uses one byte, so a Byte Order Mark is irrelevant, but could it or some other Microsoft feature, being added cause the problem?
I have had a look at the files being generated on Windows and my Raspberry Pi's with a hex editor, none of them are generating log files with a BOM or any sort of header - they are straight-up plain text files.
Re: MXdiags - file encoding
Posted: Thu 24 Mar 2022 9:13 pm
by Phil23
Sounds like something weird going on within your OS.
Every editor I've opened on my Pi's has been fine with all files.
Geany is my main go to editor on the Pi, only using Nano for the likes of Crontabs.
Sudo Geany [Filename] works for root edits.
If you have a spare card or another Pi, you could test the files opening there.
Also as mentioned, I do also open files in NotePad++ vis a WinSCP connection & don't see anything but raw txt.