typora-issues icon indicating copy to clipboard operation
typora-issues copied to clipboard

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

Open sacher-khoudari opened this issue 4 months ago • 1 comments

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.

sacher-khoudari avatar Aug 25 '25 07:08 sacher-khoudari

Could you attach or send us [email protected] a sample file? Typora should automatically detect the correct encoding if it is not UTF-8 and remember the encoding user choose.

And, did you move or rename the file?

abnerlee avatar Aug 27 '25 00:08 abnerlee