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

Herbert Kleebauer <[email protected]> Wed, 31 Dec 2025 13:21:16 +0100
Newsgroups alt.comp.os.windows-10,alt.comp.os.windows-11,alt.comp.microsoft.windows
Organization A noiseless patient Spider
Message-ID <[email protected]>
On 12/31/2025 9:33 AM, Marian wrote:

> This line has a sneaky Unicode dash � right here.
> This line has curly quotes �like these�.
> This line has a non-breaking space between words.

In Thunderbird this didn't arrive as valid uTF-8 code.

"dash � right" in hex:

64 61 73 68 │ 20 FB 20 72 │ 69 67 68 74

FB is the starting byte of a 4 byte utf-8 code, but the
3 remaining bytes are missing.


> c:\> type unicode2ascii.bat
> @echo off
> :: unicode2ascii.bat
> :: This batch file runs a PowerShell script that removes all non-ASCII
> :: characters from unicode.txt and writes the cleaned output to ascii.txt.
> powershell -NoProfile -ExecutionPolicy Bypass -File unicode2ascii.ps1

Wouldn't it be simpler to open the file in Notepad and save it with
ANSI encoding instead of UTF-8?