Hi. I need to batch converting of files, from ansi to utf8, and for that I want
to write a little macro or a script on one of the supported languages, for
example on VBscript. But I can't find any information, about how I can run
function of converting ansi2utf8, as if I choose from menu Format -> UTF 8, and
save file.
I want to realize this operation from vbscript.
example:
const module_name = "RunAction" 'this name must be unique !!!
const module_ver = "0.001" 'version
sub Procedure
set obj = NewEditor()
for i = 0 to editorsCount - 1
obj.assignEditorByIndex(i)
obj.activate
'!!!! here I need to convert current file to UTF-8 and save it
next
end sub
' name "Init" is required, its called automatically during initialization to
create menu items
sub Init
addMenuItem "Run action demo (convert all open files)","", "Procedure"
end sub
How can I do it?
Thanks.
--
<http://forum.pspad.com/read.php?2,48176,48176>
PSPad freeware editor http://www.pspad.com