I'm on Ubuntu 23.10 using gedit 44.2. I opened a file named METADATA
, and it displayed like this:
However, if I open it with another file editor, I see these contents:
Metadata-Version: 2.1
Name: pyright
Version: 1.1.337
Summary: Command line wrapper for pyright
...
It seems that gedit did not correctly recognise the file encoding to be UTF-8, and opened it using another encoding. How can I ask gedit to open the file using UTF-8?
file
command)? – steeldriver Nov 23 '23 at 21:57gedit --encoding=UTF-8 '/a/file'
– cmak.fr Nov 24 '23 at 08:33