Article View: news.software.nntp
Article #56522Re: Trailing spaces in body on INN 2.3.3 ?
From: Jesper Harder
Date: Fri, 15 Feb 2002 05:18
Date: Fri, 15 Feb 2002 05:18
50 lines
3261 bytes
3261 bytes
"J.B. Moreno" <planb@newsreaders.com> writes: > Jesper Harder <harder@myrealbox.com> wrote: > >> 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). This will probably work OK for Latin-x, but you'd have to investigate if it could hurt users of other charsets. >> 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 Sure, it'll just take a long time. > -- as for the present, there's not really a "sensible" solution, > because nothing is either official RFC 1036 doesn't say anything about 8bit but just refers to the mail standard. Since RFC 822 is now obsolete it's reasonable to look at 2821/2822 instead, which *does* mention the possibility of using 2047 for encoding non-ASCII headers. So I think it's fair to say that 2047 is "more official" than UTF-8. > or very reliable. Well, if I want to send a Subject with Latin-1 chars I have three reasonable choices: 1. Send raw Latin-1 2. Use 2047 encoding 3. Send raw utf-8 1. and 2. will display correctly in most clients, but 1. isn't a very good idea. Using raw utf-8 *won't* be displayed correctly for most users. Are there any clients at all, which will display 3. properly in the default setting? 3. doesn't give me any benefits, and hurts a lot of people -- at present that's not a sensible choice.
Technical Details
Message-ID:
<m3g0432uhs.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!news.tele.dk!small.news.tele.dk!193.162.153.118!news.tele.dk!not-for-mailReferences:
<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> <110220020108479231%planb@newsreaders.com>Show Full Headers
Complete Article Headers
Message-ID: <m3g0432uhs.fsf@defun.localdomain> Subject: Re: Trailing spaces in body on INN 2.3.3 ? Date: Fri, 15 Feb 2002 06:18:23 +0100 From: Jesper Harder <harder@myrealbox.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> <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!news.tele.dk!small.news.tele.dk!193.162.153.118!news.tele.dk!not-for-mail Organization: http://purl.org/harder/ User-Agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.1 (i686-pc-linux-gnu) Cancel-Lock: sha1:OvUrI8t++6jANxCtgyaF35ZkYEs= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Lines: 49 NNTP-Posting-Host: 195.215.224.228 X-Trace: 1013750327 dtext.news.tele.dk 17214 195.215.224.228 X-Complaints-To: abuse@post.tele.dk X-pugleaf-debug: badGroups=1 valid=1 Newsgroups: news.software.nntp