Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need to figure out how to support some unicode characters #4

Open
blankRiot96 opened this issue Jul 3, 2024 · 0 comments
Open

Need to figure out how to support some unicode characters #4

blankRiot96 opened this issue Jul 3, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@blankRiot96
Copy link
Owner

Right now when reading a file and there's a UnicodeDecodeError it simply disallows people from opening it

    def get_lines(self, file: str | Path) -> list[str]:
        try:
            with open(file) as f:
                return f.readlines()
        except UnicodeDecodeError as e:
            return ["THIS FILE FORMAT IS NOT SUPPORTED BY THE EDITOR"]

file_selector.py

@blankRiot96 blankRiot96 added the enhancement New feature or request label Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant