🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #56451

Re: Trailing spaces in body on INN 2.3.3 ?

#56451
From: J.B. Moreno
Date: Mon, 11 Feb 2002 06:08
30 lines
2636 bytes
In article <m3bsewir9o.fsf@defun.localdomain>,
 Jesper Harder <harder@myrealbox.com> wrote:

> "J.B. Moreno" <planb@newsreaders.com> writes:

> > You're using GNUS, and if I'm not mistaken, it's adding UTF8
> > support so that you won't have to "customize" anything, it'll just
> > work.
>
> No, it can't "just work" -- there is no way to determine how a random
> string is supposed to be interpreted.  How would you determine if a
> string is Latin-1, Big5, iso-2022-jp, UTF-8 or whatever?  That's just
> not possible in general.
> 
> You can try to auto-detect the encoding, and it'll sometimes be correct,
> but you can't do it reliably.

You can do it as a layered response -- check for 2047 if not then check
for valid UTF8 (or alternatively /invalid/ UTF8) and then use a default
if that doesn't (or if appropriate does) work).

> I *can* change the variable that says, which charset should be used
> if a header isn't 2047 encoded.  If I set it to utf-8, your string is
> displayed correctly.  But currently that's not a sensible setting
> because raw utf-8 isn't very common.

UTF8 may not be common now, but it is the most sensible thing for the
future -- as for the present, there's not really a "sensible" solution,
because nothing is either official or very reliable.
Technical Details
Message-ID: <110220020108479231%planb@newsreaders.com>
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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed2.news.rcn.net!rcn!dca6-feed2.news.digex.net!intermedia!newsfeed1.cidera.com!Cidera!feed1.newsreader.com!news2.newsreader.com!flame.newsreader.com!planb
References: <52419.622207@archiver.winews.net> <a405vd$huq$1@newsread4.arcor-online.net> <080220021652051376%planb@newsreaders.com> <m3sn8abowr.fsf@defun.localdomain> <090220021811495003%planb@newsreaders.com> <m31yfuatyi.fsf@defun.localdomain> <090220022338444456%planb@newsreaders.com> <m3bsewir9o.fsf@defun.localdomain>

Show Full Headers
Complete Article Headers
Message-ID: <110220020108479231%planb@newsreaders.com>
Subject: Re: Trailing spaces in body on INN 2.3.3 ?
Date: Mon, 11 Feb 2002 01:08:47 -0500
From: "J.B. Moreno" <planb@newsreaders.com>
References: <52419.622207@archiver.winews.net> <a405vd$huq$1@newsread4.arcor-online.net> <080220021652051376%planb@newsreaders.com> <m3sn8abowr.fsf@defun.localdomain> <090220021811495003%planb@newsreaders.com> <m31yfuatyi.fsf@defun.localdomain> <090220022338444456%planb@newsreaders.com> <m3bsewir9o.fsf@defun.localdomain>
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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed2.news.rcn.net!rcn!dca6-feed2.news.digex.net!intermedia!newsfeed1.cidera.com!Cidera!feed1.newsreader.com!news2.newsreader.com!flame.newsreader.com!planb
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-transfer-encoding: 8bit
Mail-Copies-To: nobody
User-Agent: Thoth/1.5.0 (Carbon/OS X)
X-Trace: flame.newsreader.com R6VMXtU7qfgc@Pd,Jquy3XCE8q6sTkiSs6usUCcW_FH9RP.Tn
Lines: 29
X-pugleaf-debug: badGroups=1 valid=1
Newsgroups: news.software.nntp