šŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #240998

Re: Message encodings

#240998
From: Ralph Fox
Date: Tue, 18 May 2010 13:49
104 lines
4730 bytes
On Tue, 18 May 2010 07:06:02 -0400, in message <4bf2749a$2$fuzhry+tra$mr2ice@news.patriot.net> 
Shmuel (Seymour J.) Metz <spamtrap@library.lspace.org.invalid> wrote:

> >Are we talking about the same thing?
> 
> Yes.
> 
> >I am talking about the character encoding of message bodies,
> 
> And headers[1].

I was talking about the character encoding only of message bodies.


> You realize that you didn't stipulate the presence of  MIME-Version:,
> Content-Type: or Content-Transfer-Encoding: fields, don't you?

The OP already stipulated that for me.  I quoted the OP's stipulation
in my reply to the OP.  I was posting in that context, not conducting 
an unrelated discussion.

|    > Usenet messages are, AIUI, supposed be either (a) valid MIME messages
|    > with a content-type, charset and transfer-encoding; or (b) non-MIME
|    > messages in 7-bit ASCII.

Would this have been clearer had I repeated the OP's '(a)' a second time 
as unquoted text?


> >It is not clear to me what you refer to by  unencoded UTF-8 [...] in
> >bodies .
> 
> Exactly what I wrote; a string of octets that were valid UTF-8. The
> only encoding was that of UCS-2 or UCS-4 into UTF-8.


The body of my previous message contained ā€œa string of octets that 
were valid UTF-8ā€.  The only encoding was that of UCS-2 or UCS-4 into 
UTF-8.  

So according to this definition, my previous message body was unencoded UTF-8.


> >As a test case, tell me   does this message here of mine count 
> >as unencoded UTF-8  ?
> 
> No; It has the appropriate MIME header fields. I haven't decoded it,
> but I assume that 'C2A0'x is a legitimate UTF-8 string.

You are now using a different criterion.  Not whether the body is
ā€œa string of octets that were valid UTF-8ā€ but now whether the
message ā€œhas the appropriate MIME header fieldsā€.

When the content-transfer-encoding is ā€˜8bit’, having the 
ā€œappropriate MIME header fieldsā€ does not change whether the
body is ā€œa string of octets that were valid UTF-8ā€.



Anyway, to answer your question 

|    Then why do I keep seeing unencoded UTF-8, both in article headers and
|    in bodies?



1.  In headers.

    My reply to the OP was referring to bodies.


2.  In bodies

    Using your definition #1:  ā€œa string of octets that were valid UTF-8ā€

    News clients that know to produce valid MIME messages with a 
    content-type, charset and transfer-encoding, can also 
    legitimately create bodies that are ā€œa string of octets that 
    are valid UTF-8ā€.  


    Using your definition #2:  the message does not have ā€œthe appropriate MIME header fieldsā€.

    Almost all of the cases that I see are in quoted text. 
    For an example, see message 
    news:emteedee-8B8D21.13410016052010@mx01.eternal-september.org
    in this thread.  In cases like this, the poster is not 
    creating UTF-8 text.  The poster’s client is simply copying 
    the raw bytes from the input message, as if they were a
    SBCS (single-byte character set).  The poster’s own text, 
    if 8-bit, is in a different charset.

    You’ve asked why _you_ see something.  Post links.
    I’m not going to play guessing games.  I don’t know where 
    you go, what kinds of things you do see or what you bluff at.


-- 
Regards
Ralph
 

    
Technical Details
Message-ID: <5325v55mqs0na07qn4gkvvbb38dqt42omu@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!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!newsfeed2.telusplanet.net!newsfeed.telus.net!news-in-02.newsfeed.easynews.com!easynews!core-easynews-01!easynews.com!en-nntp-11.dc1.easynews.com.POSTED!not-for-mail
References: <69i2c7-7o4.ln1@gate.cowlark.com> <62luu598ir9e14o7k5pp8cj59vi59n80se@4ax.com> <4befe08c$7$fuzhry+tra$mr2ice@news.patriot.net> <gr72v5d0vhq9v0h48eftjm6mrtn4fqqakn@4ax.com> <4bf2749a$2$fuzhry+tra$mr2ice@news.patriot.net>

Show Full Headers
Complete Article Headers
Message-ID: <5325v55mqs0na07qn4gkvvbb38dqt42omu@4ax.com>
Subject: Re: Message encodings
Date: Wed, 19 May 2010 01:49:09 +1200
From: Ralph Fox <-rf-nz-@-.invalid>
References: <69i2c7-7o4.ln1@gate.cowlark.com> <62luu598ir9e14o7k5pp8cj59vi59n80se@4ax.com> <4befe08c$7$fuzhry+tra$mr2ice@news.patriot.net> <gr72v5d0vhq9v0h48eftjm6mrtn4fqqakn@4ax.com> <4bf2749a$2$fuzhry+tra$mr2ice@news.patriot.net>
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!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!newsfeed2.telusplanet.net!newsfeed.telus.net!news-in-02.newsfeed.easynews.com!easynews!core-easynews-01!easynews.com!en-nntp-11.dc1.easynews.com.POSTED!not-for-mail
Newsgroups: news.software.readers
Organization: No; Y2.038Chaos instead!
X-Newsreader: Forte Agent 6.00/32.1186
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Lines: 104
X-Complaints-To: abuse@easynews.com
X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise
 we will be unable to process your complaint properly.