Page 1 of 1

The button for ISO 8859-2

Posted: Wed Oct 26, 2016 12:29 pm
by sexy96
4122 Reopen file as ANSI
4123 Reopen file as OEM
4124 Reopen file as KOI-R
4125 Reopen file as UTF16LE
4126 Reopen file as UTF16BE
4127 Reopen file as UTF8

28592 (ISO 8859-2 Europa Środkowa)
Jaki Command użyć?
"ISO 8859-2" Command(412?) Icon(0)

Posted: Thu Oct 27, 2016 12:10 pm
by Skif_off
Try button

Code: Select all

"Reopen as ISO 8859-2" OpenFile("%f", 28592) Icon(0)

Posted: Thu Oct 27, 2016 12:16 pm
by sexy96
It works great, thank you very much.

Posted: Thu Oct 27, 2016 12:32 pm
by Skif_off
If option "Don't open a file twice" don't uses:

Code: Select all

"Reopen as ISO 8859-2" Call("Scripts::Main", 1, "EvalCmd.js", `AkelPad.OpenFile(AkelPad.GetEditFile(0), 0x100 /*OD_REOPEN*/, 28592);`) Icon(0)

Posted: Thu Oct 27, 2016 1:09 pm
by sexy96
Thanks