🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #39992

Second newbie question: encoded Unicode strings?

#39992
From: Bob Crispen
Date: Mon, 20 Sep 1999 00:00
40 lines
2224 bytes
Is there some public domain or GPLed C code that can translate
Unicode character strings to something sensible?  That is,
starting with

	=?ISO-2022-JP?B?GyRCJDckZSRDJDskLRsoQg==?=

in, say, a Subject: line or a name= field, is there a way to
convert it to wide characters, if there's a font that supports
them on the user's (Win9x) machine, or to some reasonable ASCII
string?

Or if Japanese is out of the question, how about Latin-1?:

	=?iso-8859-1?Q?perch=E8?= no?

which would be nice to translate to "perche no?"  In fact, since
the program I'm writing is inextricably tied to Win9x by now,
I could even print that with the system fonts if I knew how to
do the translation (e.g., what the Q and B stand for, and what
other things I might expect to find).

At any rate, I've noticed that many newsreaders do not render
the ISO strings as I've just done above but do something to
convert them, and I'd like to do the same thing if I can.

Even a pointer to a document would help.

I found another posting that had (I believe) a JPEG file in it,
but the entire name= string was enclosed inside the Unicode
marks.  Please forgive the abysmal ignorance that led me to
assume that this was so and that the file didn't simply lack
a file "extension".  Is that even possible?  And if so, is
there a way to cope with it?
--
Bob Crispen
crispen at hiwaay dot net
What we're looking for: destinations.
What we end up getting: journeys.

Technical Details
Message-ID: <37E5C444.75818222@hiwaay.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <37E5C444.75818222@hiwaay.net>
Subject: Second newbie question: encoded Unicode strings?
Date: Mon, 20 Sep 1999 00:00:00 +0000
From: Bob Crispen <crispen@hiwaay.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 527313397
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=us-ascii
X-Trace: typ11.nn.bcandid.com 937804900 216.180.17.28 (Mon, 20 Sep 1999 01:21:40 EDT)
Organization: http://home.hiwaay.net/~crispen/
MIME-Version: 1.0
NNTP-Posting-Date: Mon, 20 Sep 1999 01:21:40 EDT
Newsgroups: news.software.nntp