MacDownApp / macdown

Open source Markdown editor for macOS.
https://macdown.uranusjr.com/
9.45k stars 1.09k forks source link

Perform some basic encoding detection #653

Open uranusjr opened 8 years ago

uranusjr commented 8 years ago

Related: #523 #652 and probably others.

We should add some simple encoding options. The most simple way is to perform encoding-detection and support UTF-8 and UTF-16. These are very easily extinguishable, and we can always default to UTF-8 when in doubt.

A more involved implementation should add a dropdown in the open dialog, and both Reopen with encoding and Convert to encoding sub-menus. These are not difficult, but quite a lot of work to do.

FranklinYu commented 8 years ago

FWIW, Sublime Text currently goes with Reopen with encoding ->

and Save with encoding ->