🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #188859

Re: [Xnews] Simple online converter for UTF-8 ?

#188859
From: John Wunderlich
Date: Sat, 05 Aug 2006 20:19
89 lines
4449 bytes
Jacks <nonono@co.co.co> wrote in
news:Xns98167D77641721F3E91@127.0.0.1: 

> In Xnews I can't read all the "From" info.  I think this is
> because it is in UTF-8 (?) and Xnews does not support that.

Yes, your statement is correct.
Remember that UTF-8 maps directly into standard ASCII for all
characters in the range 00 - 7f Hex (which represents the entire
English keyboard) so I guess you might say that Xnews does have
UTF-8 support for English characters.

> 
> Solutions posted here in the past have suggested:
> 
> (a) hovering the mouse (which still not work for me as I still see
> the mumbo-jumbo in the popup tooltip) 
> 
> (b) using a MIME proxy such as 
> http://www.lamaiziere.net/mp_readme.html.  This seems like an 
> overkill and is messier than i want to get involved in.
> 
> Is there a nice simple way to cut and paste the mumbo-jumbo into
> an online text converter?  If so then what character string do I
> need to cut and paste and what target codeset do I want?

Why?  Every ?UTF-8? field that I have seen is followed by a
space and its ASCII equivalent which is readable by Xnews.  Anything
else is definitely too messy. 

> For example, I have seen this in the FROM field:
> 
>              ?Utf-8?B?THVrZSBDaGFsbWVycw==?=
> 
> By using Google Groups to lookup the message, it seems that this 
> should be read as:
>                   Doug Sherman [MVP]

Wrong.  See RFC2047.  The "?" characters are delimiters.
The "?Utf-8?" tells you that what follows is in UTF-8 format.
The "?B?" tells you that what follows is MIME encoded.
MIME Decoding takes a block of Four characters and converts it to
three [in this case] UTF-8 bytes. In this case, all characters are
in the range where no UTF8-to-ASCII translation is required...

"THVr" decodes to "Luk"
"ZSBD" decodes to "e C"
"aGFs" decodes to "hal"
"bWVy" decodes to "mer"
"cw==" decodes to "s"

Therefore, this decodes to "Luke Chalmers", not "Doug Sherman".

One such message from Luke Chalmers is Message ID
 <D6F410C8-A33F-42CA-A53F-6C6A88A284CF@microsoft.com>

By hovering the cursor over the "From" field for this post, 
you will see:
=?Utf-8?B?THVrZSBDaGFsbWVycw==?= <LukeChalmers@discussions.microsoft.com>

This has more readable information in it than is encoded in the
UTF-8 part.  Why mess with it?

> (1) To do this conversion myself, presumably I trim off
> "?UTF-8?B?" from the beginning and "==?=" from the end.  
> 
> (2) Then I take "THVrZSBDaGFsbWVycw" (without the quotes) and use
> an online webpage to convert to ISO-8859-1.

... and it converts nicely as shown above...
Remember, you need a MIME (Base-64) decoder, not a UTF-8 decoder 
at this stage.

> 
> (3) This is such an onlne converter
> http://www.motobit.com/util/charset-codepage-conversion.asp

This is a UTF-8 converter.  What you need is a MIME converter.  As
stated earlier, all characters in this encoding do not require a
UTF-8 -> Ascii translation.  That's the beauty of UTF-8

> But all this doesn't seem to work.  :-(
> 
> Can someone tell me where this is going wrong?
> 

Hope this helps,
   John
Technical Details
Message-ID: <Xns981687792DC20wunderpsdrscraytheon@216.196.97.142>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local02.nntp.dca.giganews.com!nntp.adelphia.com!news.adelphia.com.POSTED!not-for-mail
References: <Xns98167D77641721F3E91@127.0.0.1>

Show Full Headers
Complete Article Headers
Message-ID: <Xns981687792DC20wunderpsdrscraytheon@216.196.97.142>
Subject: Re: [Xnews] Simple online converter for UTF-8 ?
Date: Sat, 05 Aug 2006 13:19:03 -0700
From: John Wunderlich <jwunderlich@lycos.com>
References: <Xns98167D77641721F3E91@127.0.0.1>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local02.nntp.dca.giganews.com!nntp.adelphia.com!news.adelphia.com.POSTED!not-for-mail
NNTP-Posting-Date: Sat, 05 Aug 2006 15:19:02 -0500
Newsgroups: news.software.readers
User-Agent: Xnews/2006.03.14
Lines: 89
NNTP-Posting-Host: 69.169.107.13
X-Trace: sv3-VS1XpaPYxKtwXOoyPavgHiOtca2WoOXQBisMaYmDQLMXBSIGnp+o1hbJpntHd01CLDchYmEltuvMggn!qZd74GnzsCQOzBvrZXohksoIzI9/NBu/icH6zWuQMgW5GaCbprZi32la3Vy5Mng15jGy7ksyvJBC!j7hPBu+0ilrVgaFYrllmF8+9+HZrZfmTr50c
X-Complaints-To: abuse@adelphia.net
X-DMCA-Complaints-To: copyright@adelphia.net
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint
 properly
X-Postfilter: 1.3.32