🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #188899

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

#188899
From: Ralph Fox
Date: Mon, 07 Aug 2006 20:04
53 lines
2928 bytes
On Sat, 05 Aug 2006 12:20:01 +0100, in message <Xns98167D77641721F3E91@127.0.0.1>,
Jacks wrote:

> For example, I have seen this in the FROM field:
> 
>              ?Utf-8?B?THVrZSBDaGFsbWVycw==?=
                      ^
                      |

And this ?B? means that it is Base-64 encoded.


> By using Google Groups to lookup the message, it seems that this 
> should be read as:
>                   Doug Sherman [MVP]
> 
> 
> (1) To do this conversion myself, presumably I trim off "?UTF-8?B?" 
> from the beginning and "==?=" from the end.  

Just the ?= from the end.

> (2) Then I take "THVrZSBDaGFsbWVycw" (without the quotes) and use an 
> online webpage to convert to ISO-8859-1.

You take the "B?THVrZSBDaGFsbWVycw==" (without the quotes),
and run it through a Base-64 decoder.

The you take what came out of the Base-64 decoder, and convert
that from UTF-8 to ISO-8859-1.


> (3) This is such an onlne converter
> http://www.motobit.com/util/charset-codepage-conversion.asp
> 
> But all this doesn't seem to work.  :-(

It is probably not decoding Base-64.


> Can someone tell me where this is going wrong?


Two things
(1)  Trim ?= from the end, not ==?=
(2)  You need to run the "B?THVrZSBDaGFsbWVycw==" through a Base-64
     decoder before you run it through a UTF-8 to ISO-8859-1 converter.


-- 
Cheers,
Ralph
Technical Details
Message-ID: <tr6fd2dbjdmbon7pjcbvfj5gf2tccgacq3@4ax.com>
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.clear.net.nz!news.clear.net.nz.POSTED!not-for-mail
References: <Xns98167D77641721F3E91@127.0.0.1>

Show Full Headers
Complete Article Headers
Message-ID: <tr6fd2dbjdmbon7pjcbvfj5gf2tccgacq3@4ax.com>
Subject: Re: [Xnews] Simple online converter for UTF-8 ?
Date: Mon, 07 Aug 2006 20:04:30 +0000
From: Ralph Fox <-@-.invalid>
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.clear.net.nz!news.clear.net.nz.POSTED!not-for-mail
NNTP-Posting-Date: Mon, 07 Aug 2006 15:04:34 -0500
Newsgroups: news.software.readers
Organization: No; Y2.038Chaos Instead!
X-Newsreader: Forte Agent 4.0/32.1059
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Original-NNTP-Posting-Host: 210-246-0-60.paradise.net.nz
X-Original-Trace: 8 Aug 2006 08:04:31 +1200, 210-246-0-60.paradise.net.nz
Lines: 53
NNTP-Posting-Host: 203.97.37.6
X-Trace: sv3-fKVuj98TJejqzcY84F1AVMXpFZWFfFi6SoK0tQAKLtC5cMn3kHX7quFSI6kHkGAN1dgwambvxpWRcdA!rNEBix2i44c19DJDJZVfMNdJw9DAm8ExOwsXEaxNSIQSpNovlJMAMULRtUy4BHBcCa+DOB4mPRHs!c7Tcp80=
X-Complaints-To: Complaints to abuse@clear.net.nz
X-DMCA-Complaints-To: Complaints to abuse@clear.net.nz
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