Skip to content

🐞 Cannot show the contents of text files that are not UTF-8 encoded #1726

Closed

Description

@plbstl

Description

CodeEdit cannot show the contents of text files that are not UTF8 (and ASCII) encoded. They show up as empty.

This might be a duplicate of #1263 and it is not related to #1202 as that has to do with writing to a file.
Xcode shows file contents regardless of the Default Text Encoding Setting.

To Reproduce

  1. Open CodeEdit
  2. Select a text file that is not encoded in UTF-8

Example files can be gotten from: https://github.com/stain/encoding-test-files

Expected Behavior

CodeEdit should at least show contents of the opened file, even if characters are replaced with question marks.

Version Information

CodeEdit: 0.1.0-alpha (38)
macOS: 14.4.1
Xcode: 15.3

Additional Context

No response

Screenshots

cannot.view.text.files.that.are.not.UTF8.encoded.mov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingduplicateThis issue or pull request already existstriage needed

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions