Skip to content

[Feature] Better support for file encodings other than UTF-8 #6402

@sacher-khoudari

Description

@sacher-khoudari

I'm using Typora for work related documents, often to prepare implementation related specifications. Our customer has a strict requirement of having all text strings encoded in Latin-1, so is our Git repository. Unfortunately, Typora always defaults to UTF-8. This breaks encodings during Git commits.

Typora only offers the cumbersome menu action File -> Reopen with Encoding. It doesn't remember this setting, though, meaning I have to redo this every time I switch to another file. This is easy to miss.

So far I always check my changes before committing and often have to fix mixed encodings with dozens of special characters. This is time consuming.

I'd like to have a better solution for this. Some ideas:

  • Remember the file encoding for each file opened in the past.
  • Have a default file encoding set in the settings.
  • Perform a check once the file is opened and if it's not UTF-8, prompt the user for the correct file encoding.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions