<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Always work in OEM-US]]></title><description><![CDATA[<p dir="auto">I want to always open source code files as OEM-US as otherwise line-draw characters get mashed up.<br />
I see there is supposed to be a python script out there that will achieve this. Anybody got it?</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/19991/always-work-in-oem-us</link><generator>RSS for Node</generator><lastBuildDate>Wed, 13 May 2026 06:32:05 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/19991.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 12 Sep 2020 17:18:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Always work in OEM-US on Thu, 17 Sep 2020 17:08:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a> thanks</p>
]]></description><link>https://community.notepad-plus-plus.org/post/57676</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/57676</guid><dc:creator><![CDATA[dave robinson]]></dc:creator><pubDate>Thu, 17 Sep 2020 17:08:25 GMT</pubDate></item><item><title><![CDATA[Reply to Always work in OEM-US on Thu, 17 Sep 2020 17:06:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> thanks, that’s an approach I hadn’t thought of.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/57675</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/57675</guid><dc:creator><![CDATA[dave robinson]]></dc:creator><pubDate>Thu, 17 Sep 2020 17:06:32 GMT</pubDate></item><item><title><![CDATA[Reply to Always work in OEM-US on Mon, 14 Sep 2020 14:09:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> said in <a href="/post/57600">Always work in OEM-US</a>:</p>
<blockquote>
<p dir="auto">…that will associate a function with the “open file” notification.</p>
</blockquote>
<p dir="auto">One thing I’ve noticed is that if a session (including the “remembered” session) is restored when N++ is starting up, “open file” notifications are not received (for files in the session) by code that is installed via Pythonscript’s <a href="http://startup.py" rel="nofollow ugc">startup.py</a>.  However, “buffer activated” notifications for these files are received.</p>
<p dir="auto">Having not tried something like what the OP desires in this scenario, I’m not sure it comes into play, but I thought I’d mention it.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/57601</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/57601</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Mon, 14 Sep 2020 14:09:27 GMT</pubDate></item><item><title><![CDATA[Reply to Always work in OEM-US on Mon, 14 Sep 2020 13:35:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dave-robinson" aria-label="Profile: dave-robinson">@<bdi>dave-robinson</bdi></a> ,</p>
<p dir="auto">I believe that <code>notepad.menuCommand(MENUCOMMAND.FORMAT_DOS_437)</code> is what you want (DOS CodePage 437 is equivalent to OEM-US).  You could bind a script with that (or just record a macro of you selecting <strong>Encoding &gt; Character Sets &gt; Western European &gt; OEM-US</strong>) and assign to a keystroke of your choice.  Or you could write a more complicated PythonScript script that will associate a function with the “open file” notification.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/57600</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/57600</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Mon, 14 Sep 2020 13:35:33 GMT</pubDate></item></channel></rss>