0

I'm on Ubuntu 23.10 using gedit 44.2. I opened a file named METADATA, and it displayed like this:

Screenshot of mojibake

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?

Flimm
  • 41,766

0 Answers0