It appears that there are at least two questions here on Ask Ubuntu that are similar to this, but neither has been answered.
- How can I find out the encoding method that gedit uses to open a text file?
- How does gedit detect the encoding of a text file?
Text files can be valid under multiple encodings simultaneously. I would like to know the exact encoding gedit uses to decode a given file. Can this be done in the recent versions of gedit?
(I'd like to note that I am aware of other tools that can determine the encoding of a given file. However, I want to know the encoding as detected by gedit specifically)
GTK_SOURCE_FILE_LOADER_ERROR_ENCODING_AUTO_DETECTION_FAILED
. If you want to dig through the GTK source to see what exactly it does, you might start ingtksourceview/gtksourcefileloader.c
. – muru Aug 15 '17 at 07:10gvfs-info
is not useful either. – muru Aug 15 '17 at 07:22