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

English main discussion
Post Reply
  • Author
  • Message
Offline
Posts: 3
Joined: Sun Jan 18, 2009 8:57 am

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

Post 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

Offline
Site Admin
Posts: 6311
Joined: Thu Jul 06, 2006 7:20 am

Post by Instructor »

leuce
Main menu -> Options -> Settings... -> General -> Codepage recognition -> None
Post Reply