Commit graph

2 commits

Author SHA1 Message Date
R Aadarsh
0e1f9f689c Add a new load_with_encoding function to handle files with various encodings.
Modified `Buffer::reload` in `buffer.rs` to use this new function, allowing Zed
to open files with any encoding in UTF-8 mode. Files with characters that
are invalid in UTF-8 will have those bytes replaced with the � character.

Add comments and documentation.
2025-08-26 23:58:03 +05:30
R Aadarsh
5723987b59 Implement the actual encoding selector. There are currently only two encodings in the selector used as placeholders, but more will be added in the future. As of now, the encoding picker is not actually triggered. 2025-08-26 23:58:03 +05:30