Kittyfisto / Tailviewer

Open source log file viewer
https://kittyfisto.github.io/Tailviewer/
MIT License
184 stars 38 forks source link

It should be possible to change a log file's encoding in a few steps #284

Open Kittyfisto opened 3 years ago

Kittyfisto commented 3 years ago

Status quo

Tailviewer isn't always able to correctly guess the encoding of a log file, especially when those file's don't care enough to write a marker or use some archaic encoding (windows code pages). This can be corrected by having the user select the default encoding in the settings panel, however this is then used for every log file.

As soon as one wants to view multiple log files, each with their own encoding (which tailviewer cannot detect), one is screwed and must switch to the settings page.

Enhancement

The user should be able to directly change the encoding used for a specific text log file. This shall be done in the same area where the encoding is displayed (which is the log file properties panel to the right side of the screen at the moment). The user should be able to select the same values as in the settings page itself. Changing the encoding shall automatically reload the file with the selected encoding. No restart shall be necessary.