Skip to content

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

@blankRiot96

Description

@blankRiot96

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions