Remembering BOM setting

English main discussion
Post Reply
  • Author
  • Message
Offline
Posts: 4
Joined: Thu Feb 21, 2008 12:21 am
Location: Poland
Contact:

Remembering BOM setting

Post by Faalagorn »

It would be great, if AkelPad could also remeber enabled/disabled BOM setting along with charset when saving a file.

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

Post by Instructor »

From AkelPad 3.0.9 changelog:
Changed: now recent files code page information doesn't contain BOM, which always again detected during file opening.
For what you need this?

Offline
Posts: 57
Joined: Sun Jul 27, 2008 6:47 am
Location: slovakia

Post by pvagner »

Hello,
I have found a quite unusual behaviour related to this I believe.
When automatic code page detection is turned on UTF-8 BOM is not always respected and this automatic page detection might detect the codepage wrong.
For slovak language default ansi code page is windows-1250. If I'll write a text in slovak, save it in UTF-8 with BOM, turn automatic code page detection to latin; subsekvent tryals to open such file result in windows-1250 code page being detected. I think when UTF-8 BOM is present there should be no detection taking place.

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

Post by Instructor »

pvagner
Make sure that the file has BOM :)

Offline
Posts: 57
Joined: Sun Jul 27, 2008 6:47 am
Location: slovakia

Post by pvagner »

Instructor wrote:pvagner
Make sure that the file has BOM :)
I think it really has BOM.
When code page detection is turned off it is corectly recognized as UTF-8 and status bar says:

Code: Select all

65001 (UTF-8)  *BOM
Also if codepage detection is turned on and I'll reopen the file from the F12 popup menu as UTF-8 it shows the same. If you like I can send you the file but I can reproduce it in all the cases.

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

Post by Instructor »

*BOM - means that file doesn't have BOM.

Offline
Posts: 57
Joined: Sun Jul 27, 2008 6:47 am
Location: slovakia

Post by pvagner »

Hello,
Thanks for the explanation.
Post Reply