@SMD40470 ,
I think the most likely reason (whether or not you think it’s “serious” enough) is that no one has asked for that feature, and the developer didn’t think of it himself yet.
If it was just a UDL issue, I would probably say, “You should put in the feature request, but unfortunately, there have been no new features in UDL for over a decade, with a lot of really good feature requests that would be more fundamental to making UDL work better, so it’s doubtful it would be implemented any time soon.”
However, based on this Issue about NFO files and OEM-US/CP437 encoding, it looks like there might be other people interested, even in non-UDL circumstances. So I wonder if the better feature request might be the more generic request, something like [FEATURE REQUEST] Allow setting preferred encoding on a per-language basis.
However, there does currently exist a workaround: the AutoCodepage plugin can be used to set default encoding on a per-extension basis. While it might be nice to have it built in, the plugin currently provides the feature. Steps to get it to work:
Have a UDL. In my example, I call it MyUDL and I give it the Ext.: smd, so all files ending in .smd will be treated as that UDL. (I picked smd from the letters in your username)
Install the plugin
Plugins > AutoCodepage > Settings
Set Group Name = MyUDL
Set Code page to start = OEM 437: US
Leave Expected language blank (because that dropdown doesn’t include UDL in the list)
Click the + button under the left panel
make sure MyUDL is highlighted in the upper left panel of the dialog
Set New filename extension(s) = SMD
whether you type in lowercase or uppercase, it ends up uppercase
the plugin automatically adds the . prefix when you + the extension
you could type another extension and + add it if your UDL has multiple possible extensions
Click the + button under the right panel
The dialog should look like:
[image: 1787174274647-5713f8fa-39a7-4597-b1bf-dc5da4e15e3b-image.jpeg]
Close the dialog
side notes:
It took me a few times to figure out the right sequence, because the plugin’s documentation is a bit sparse, which is why I was explicit as to the right order.
If you want to add another group – like an MS-DOS NFO group with the same codepage, but defaulting to the NFO language – you would have to follow similar steps of typing the name, setting the encoding and language, then doing the + – even though it looks like you are editing the MyUDL, as soon as you click + instead of Modify, it will create the new entry instead of modifying the old entry; you then make sure the new entry is selected, and add NFO to its extension list.
Create a new file, and immediate right-click the tab and name it blah.smd
Notepad++ will automatically apply the UDL, since the UDL extension is set to smd
AutoCodepage will automatically apply the OEM-US encoding
Open an existing blah.smd file
Notepad++ will automatically apply the UDL, since the UDL extension is set to smd
AutoCodepage will automatically apply the OEM-US encoding
The nice thing about this plugin is that it applies that encoding when you first name, or save-and-name a file, and when you open the file from disk.
I believe this should meet your needs, even if no one ever requests or implements the feature in native Notepad++.