Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from Npp import *
- console.write("Converting all open files to UTF-8 and saving\n")
- console.write("---------------------------------------------\n")
- filenames = notepad.getFiles()
- for fn in filenames:
- if (fn[0][:3] != "new"):
- console.write(" - Converted and saved " + fn[0] + "\n")
- notepad.activateFile(fn[0])
- notepad.menuCommand(MENUCOMMAND.FORMAT_CONV2_UTF_8)
- notepad.save()
- else:
- console.write(" - Skipped " + fn[0] + "\n")
- console.write("\n")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement