zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
46.89k stars 2.69k forks source link

Support for non UTF-8 text encodings #16965

Open notpeter opened 2 weeks ago

notpeter commented 2 weeks ago

Check for existing issues

Describe the feature

Zed currently only supports UTF-8 text. This is an enhancement request for it to support other text encodings.

Workarounds

You can convert your files to UTF-8 using external tools like Sublime Text or iconv. If you know the encoding (e.g. ISO-8859-1 Latin1):

iconv -f ISO-8859-1 -t input.txt > output.txt

Etc

There are separate issues for supporting non-text binary data and CR/LF line-endings:

If there are additional specific encodings you would like to see, please comment below with a sample file and I will add it to the list above.

Please 👍 upvote this issue if you would like to see this feature prioritized. (+1 comments will be removed).

FrittenKeeZ commented 2 weeks ago

I think Windows 1252 (or CP1252) would be a useful addition. cp1252.txt