🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #268419

Re: Question: Do Winston's headers cause charset issues for anyone else?

#268419
From: Maria Sophia
Date: Fri, 13 Mar 2026 10:28
78 lines
5312 bytes
Dave Royal wrote:
> I wrote a newsreader a few years ago, in Python. Python had a
>  module to decode headers encoded as in RFC2047; this one I
>  think:
> <https://docs.python.org/3/library/email.header.html>
> <https://www.ietf.org/rfc/rfc2047>
> 
> I didn't bother to detect /whether/ the headers had encoded words,
>  I decoded everything in case it did. (I've seen several encoded
>  words in different encodings in a single header field.)
> 
> In your case it sounds like you need an encoder as well as a
>  decoder. If there aren't such modules in whatever your system is
>  written in, you could write one. Perhaps a sub-process written in
>  Python: pass it the raw header and it returns it in unicode. And
>  vice versa to encode it.


Hi Dave,

Thanks for the explanation. And purposefully helpful encoding advice.
Some of this stuff only gets learned from experience like you have. 

Me? 
I've never understood character encoding. Everything I know has been
learned the hard way, usually by staring at mojibake and trying to guess
what the server thought it saw. 

Your point about needing an encoder as well as a decoder makes total
sense. If I want the servers in my path to stop playing "guess the
charset" with my messages, I need to hand them something that does not
invite creative interpretation.

I should mention that I already often run my outgoing body through a
Notepad++ cleanup macro (shortcuts.xml). It is a monster of a file that
tries to normalize everything to plain ASCII. It is over a thousand
lines long, and at this point it has more comments than actual code.
 Newsgroups: alt.comp.os.windows-10,alt.comp.os.windows-11,alt.comp.microsoft.windows
 Subject: Tutorial: Notepad++ shortcuts.xml macro converts unicode to the 95-keyboard ASCII characters
 Date: Thu, 11 Dec 2025 09:42:48 -0700
 Message-ID: <10hesa9$2q1m$1@nnrp.usenet.blueworldhosting.com>

It does a great job normalizing pasted text from a variety of sources,
but it does not do RFC2047 header encoding. So it cleans the body, 
but the headers still go out wearing whatever 8-bit bytes they inherited.

In addition, since Chromium browsers screw up Linux/macOS/Windows
clipboards far more than Mozilla browsers do, and in invisible but telling
ways, I've benefited from working with the Mozilla cross-platform team to
identify how to remove those nastly CF_HTML fragments in desktop clipbrds.
 Newsgroups: alt.comp.software.firefox,comp.sys.mac.system,alt.os.linux
 Subject: PSA: Clipboard differences between Chromium & Firefox across platforms
 Date: Thu, 12 Feb 2026 15:26:32 -0500
 Message-ID: <10mld1o$1910$1@nnrp.usenet.blueworldhosting.com>

So it has been a long rocky road indeed, where it's nice to know you've
taken that path less traveled by yourself, and learned from the trek.

If you can look at my test and let me know what YOU see, that would be
helpful as I sent the same message twice, with the only difference being I
changed the header from declaring ASCII to UTF-8 and the results came back
in the latter exact message looking like a ransom note as a result.

If you see what I saw, then that kind of proves the servers in the PATH are
reacting to Winston's font-soup character set of "W¡񧱤ñ¬Ößóògîë". 

Luckily, declaring everything is US-ASCII seems to should stop the servers
from trying to "repair" my messages. Declaring UTF-8, so far, has produced
output that looks like a charset-guessing algorithm having a midlife
crisis.

The reason it matters to me is other people have asked me to *fix it*.
But I can't fix it if I don't understand it.

And I'm the 1st to openly publicly & meekly claim I don't understand it.

Hence I appreciate your insight, especially as you've been there done that.
It helps to hear from someone who has already fought this & survived.	
Technical Details
Message-ID: <10p0osn$1gv6p$1@paganini.bofh.team>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!spool1.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!newsfeed.bofh.team!paganini.bofh.team!not-for-mail
References: <10ot1jr$5it$1@nnrp.usenet.blueworldhosting.com> <10otoq9$1o9q7$1@dont-email.me> <10ov0da$27r9k$1@dont-email.me> <10p08al$2pb2v$1@dont-email.me> <10p0j1u$1gjfo$1@paganini.bofh.team> <10p0lau$1go2i$1@paganini.bofh.team> <10p0nch$308f6$1@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!spool1.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!newsfeed.bofh.team!paganini.bofh.team!not-for-mail
From: Maria Sophia <mariasophia@comprehension.com>
Newsgroups: alt.comp.os.windows-10,news.software.readers,alt.comp.software.thunderbird
Subject: Re: Question: Do Winston's headers cause charset issues for anyone else?
Date: Fri, 13 Mar 2026 03:28:39 -0700
Organization: To protect and to server
Message-ID: <10p0osn$1gv6p$1@paganini.bofh.team>
References: <10ot1jr$5it$1@nnrp.usenet.blueworldhosting.com> <10otoq9$1o9q7$1@dont-email.me> <10ov0da$27r9k$1@dont-email.me> <10p08al$2pb2v$1@dont-email.me> <10p0j1u$1gjfo$1@paganini.bofh.team> <10p0lau$1go2i$1@paganini.bofh.team> <10p0nch$308f6$1@dont-email.me>
Reply-To: pusvul@getTjewytR4so+mqe2.invalid
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 13 Mar 2026 10:28:40 -0000 (UTC)
Injection-Info: paganini.bofh.team; logging-data="1604825"; posting-host="0zSHxRtCWEsnuj4eaI1oHQ.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A";
User-Agent: TB Mojibake Scrambler
X-Notice: Filtered by postfilter v. 0.9.3
Content-Language: en-GB