Page 1 of 1

Read as iso-8859-1 but write as UTF-8?

Posted: Fri Aug 26, 2016 7:38 am
by leuce
Hello

A lot of my text files are in iso-8859-1, but Akelpad assumes the files are UTF-8 without BOM, and so it messes up certain characters. I use all English letters except that some vowels have diacritical marks. When Akelpad reads these, it breaks them, and then it saves the file as UTF-8 without BOM. Then, when an iso-8859-1 text editor opens those files again, the broken characters are broken even further.

For example, if the iso-8859-1 file is "asdfëasdf asdfêasdf asdféasdf asdfèasdf", then it is displayed (and saved!) in Akelpad as "asdf꠳df asdf頳df asdf蠳df asdf砳df", and when someone opens it in an iso-8859-1 text editor again, it becomes "asdfê ³df asdfé ³df asdfè ³df asdfç ³df".

Is there a way to tell Akelpad: "look, it's *never* UTF-8 without BOM, so if it looks like UTF-8 without BOM, then read it as iso-8859-1"?

I don't mind if Akelpad then saves it as UTF-8 with BOM because at least then it has a BOM.

Thanks
Samuel

Posted: Mon Aug 29, 2016 5:46 am
by Instructor
leuce
Main menu -> Options -> Settings... -> General -> Codepage recognition -> None