How strange, my default CP for files opening is set to "ANSI (Windows)".

This is what I do in more detail:
(Tested in PSPad 4.5.8 (2500), Windows Vista Home Premium)


_1. Enable BOM mark_
[url=http://postimg.org/image/sgwejmc0n/][img]http://s23.postimg.org/sgwejmc0n/p
spad_conf_1.png[/img][/url]

_2. Configure default CP:_
[url=http://postimg.org/image/wor6sddg7/][img]http://s23.postimg.org/wor6sddg7/p
spad_conf_2.png[/img][/url]

[b]3. Open in the HEX editor a file containing nothing but the character "a",
and make sure it doesn't have the BOM mark[/b]
[url=http://postimg.org/image/itsw9wj13/][img]http://s23.postimg.org/itsw9wj13/p
spad_file_hex_before.png[/img][/url]

_4. Close the HEX editor and select UTF-8 in the Format menu_
[url=http://postimg.org/image/lcs3ijnw5/][img]http://s18.postimg.org/lcs3ijnw5/p
spad_conf_3.jpg[/img][/url]

_5. Open the file in the normal text editor. It is detected as UTF-8_
[url=http://postimg.org/image/xohho2slz/][img]http://s23.postimg.org/xohho2slz/p
spad_open_file.png[/img][/url]

[b]6. Without doing any modifications to the file, hit Ctrl+S and close it
immediately[/b]

_7. Open the file again in HEX editor. It now has the BOM mark_
[url=http://postimg.org/image/3v5w1qel3/][img]http://s23.postimg.org/3v5w1qel3/p
spad_file_hex_after.png[/img][/url]

-- 
<http://forum.pspad.com/read.php?2,64085,64095>
PSPad freeware editor http://www.pspad.com

Odpovedet emailem