Well for certain languages it's really hard to guess what character coding where used to represent the string in the menu. But just for giggles I challenged myself and tried, after failing a few times to infer from the menu what it was, and when I was about to give up, I had the idea to look up the raw translation in xml: https://github.com/notepad-plus-plus/notepad-plus-plus/tree/master/PowerEditor/installer/nativeLang My language is Japanese so the corresponding entries in the xml are: <Item menuId="encoding"...
That was it, to summarize: MENUCOMMAND.FORMAT_AS_UTF_8 -> to UTF8 without BOM MENUCOMMAND.FORMAT_CONV2_AS_UTF_8 -> to UTF8 without BOM MENUCOMMAND.FORMAT_CONV2_UTF_8 -> to UTF8 with BOM Thanks! Side note: notepad.runMenuCommand("Encoding", "Convert to UTF-8") will convert to UTF8 without BOM notepad.runMenuCommand("Encoding", "Convert to UTF-8-BOM") will convert with BOM But it only works when Notepad++ language is set to English
That was it, to summarize: MENUCOMMAND.FORMAT_AS_UTF_8 -> to UTF8 without BOM MENUCOMMAND.FORMAT_CONV2_AS_UTF_8 -> to UTF8 without BOM MENUCOMMAND.FORMAT_CONV2_UTF_8 -> to UTF8 with BOM Thanks! Side note: notepad.runMenuCommand("Encoding", "Convert to UTF-8") will convert to UTF8 without BOM notepad.runMenuCommand("Encoding", "Convert to UTF-8-BOM") will convert with BOM But it only works when Notepad++ language is set to English
That was almost it, after looking it up more it's actually: MENUCOMMAND.FORMAT_AS_UTF_8 -> to UTF8 without BOM MENUCOMMAND.FORMAT_CONV2_UTF_8 -> to UTF8 with BOM Thanks for pointing me to the right direction. Side note: notepad.runMenuCommand("Encoding", "Convert to UTF-8") will convert to UTF8 without BOM notepad.runMenuCommand("Encoding", "Convert to UTF-8-BOM") will convert with BOM But it only works when Notepad++ language is set to English
I edited the post to be clearer, let me rephrase here as well: MENUCOMMAND.FORMAT_CONV2_AS_UTF_8 converts to UTF8 with BOM, I need the same to convert without BOM but it does not exists, this is a feature request. Side note: notepad.runMenuCommand("Encoding", "Convert to UTF-8") will convert to UTF8 without BOM notepad.runMenuCommand("Encoding", "Convert to UTF-8-BOM") will convert with BOM Unfortunately it only works when Notepad++ language is set to English (this is not my case)
I edited the pose to be clearer MENUCOMMAND.FORMAT_CONV2_AS_UTF_8 converts to UTF8 with BOM, I need the same to convert without BOM but it does not exists, this is a feature request. Side note: notepad.runMenuCommand("Encoding", "Convert to UTF-8") will convert to UTF8 without BOM notepad.runMenuCommand("Encoding", "Convert to UTF-8-BOM") will convert with BOM Unfortunately it only works when Notepad++ language is set to English (this is not my case)
When Notepad++ language is set to something other than English: notepad.runMenuCommand("Encoding", "Convert to UTF-8") Will not be found, well that's to be expected but it seems the enum: notepad.menuCommand(MENUCOMMAND.FORMAT_CONV2_UTF_8) Converts to UTF8 with BOM and I can't find a version without BOM. It be nice to have both enums to convert to UTF8 with and without BOM. I recently discovered this little plugin and I'm very excited to all the things I'm going to be able to automate from now on...
Normal behavior of VS Code