Open stefanschleich opened 12 years ago
Confirmed with Chocolat 1.2 on OSX 10.8. Actually this is pretty annoying, since there seems no way to reload a file with a certain encoding.
Oh, reopen using encoding. Must... do... that...
Accurate encoding detection is a hard problem, and not one that I have much desire to solve. Currently we let Cocoa worry about it, so Chocolat is as good (or bad) as TextEdit. However, I have no idea by what means Cocoa does its guessing of the encoding.
If at all possible, I recommend you use UTF-8 whenever you can, since UTF-8 can (usually) be unambiguously detected. Everything else is pot luck, whatever editor you use.
Actually, "reopen using encoding" is the main reason I use TextWrangler
every now and then. However, it would be nice if you add the ability to
save UTF-8 with and without BOM as well.
Btw, in some projects I went through the encoding hell several times, too.
I've activated the "File Encoding" menu in the status bar. It shows "Unicode (UTF-8)", no matter what encoding the active file actually has.
OS X 10.6.8 / Chocolat 1.1