Re: Tutorial: Notepad++ shortcuts.xml macro converts unicode to the 95-keyboard ASCII characters

Maria Sophia <[email protected]> Wed, 11 Mar 2026 17:19:11 -0700
Newsgroups alt.comp.os.windows-10,alt.comp.os.windows-11,alt.comp.microsoft.windows
Organization BWH Usenet Archive (https://usenet.blueworldhosting.com)
Message-ID <[email protected]>
Maria Sophia wrote:
> The result is even when I read my own post back, it looks corrupted.
> So the corruption is caused by Winston's header, which I need to fix.
> 
> How?	.

I 'think' I fixed Winston's illegal syntax. 
I just switched the header from "8bit + UTF-8" to "7bit + US-ASCII"

Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
		.	
Apparently that change removed the ambiguity that triggered nntp server
rewrites when I replied to Winston's illegal-header-syntax posts.

This tells every NNTP server:
 a. "This article contains only 7-bit ASCII."
 b. "There are no multibyte UTF-8 sequences."
 c. "Do not reinterpret or re-encode anything."

My reply attribution to Winston's posts was getting contaminated because
Winston's display name contains raw 8-bit characters, and my home-grown
newsreader simply copies that line verbatim into my Windows text editor.

This removes Winston’s illegal bytes everywhere, including attribution:
 <ReplaceRE Find="[^\x00-\x7F]" Replace="" />
After stripping illegal bytes, Winston’s attribution becomes:
 ...wnsn wrote:

But perhaps this would be cleaner?
 <ReplaceRE Find="^.*wrote:" Replace="Winston wrote:" />
Or, keeping what Winston had intended, maybe this is more complete?
 <ReplaceRE Find="^.*<([^>]+)>\s*wrote:" Replace="\1 wrote:" />

Which turns this:
 ...w¡ñ§±¤ñ <[email protected]> wrote:
Into this:
 [email protected] wrote:

So I'm going to add these lines to my shortcuts.xml cleanup script:
<!-- Remove Unicode garbage from quoted Usenet 'X wrote:' lines --> 
<!-- (e.g., Winston's illegal headers) so my posts stay 7-bit clean -->
 <ReplaceRE Find="[^\x00-\x7F]" Replace="" />
 <ReplaceRE Find="^.*wrote:" Replace="Winston wrote:" />
 <ReplaceRE Find="^(References|In-Reply-To):.*" Replace="" />

The best way to test will be to respond to one of Winston's posts.

If you have a better idea, let me know as it takes work to write
your own newsreader such that all posts come out clean for everyone.
-- 
Some people do what everyone does, but some do what they want to.