🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
4 messages
4 total messages Started by Frank Slootweg Tue, 30 Aug 2005 10:06
[tin+Cygwin] (In)Correct display of local characters.
#172431
Author: Frank Slootweg
Date: Tue, 30 Aug 2005 10:06
51 lines
3312 bytes
  Not a big deal but something strange which perhaps can be fixed:

  I use tin under Cygwin on MS-Windows XP in a "Command Prompt" window
(i.e. not from a (Bash) shell)).

  That works fine, but for postings which do *not* have the proper MIME
headers or/and in-line encoding, local language characters are not
properly displayed when I view the article normally, but are properly
displayed if I use <Ctrl>H to display the header and the article.

  An example is <news:bcEPe.36663$Il.6082@fe2.news.blueyonder.co.uk>
(available in Google Groups).

  The headers contains:

> Subject: Re: How much (£) should i budget for this trip?

and the body contains:

> I appreciate it's not going to be cheap but please read the post I specified
> £ not $!!
> Honestly some people!

(and, as I said, no MIME headers and no in-line encoding (in Subject:)).

  When I display the article normally, i.e. without (full) headers), the
(English currency) pound symbol in the Subject: and in the second body-
line come out as question marks.

  However if I use <Ctrl>H, to display the full headers and then the
body, both pound symbols are displayed correctly (i.e. as pound
symbols).

  I know that this is an incorrect article, because it should mention
the correct character set (ISO 8859/1) in both the Subject: and MIME
headers, but I wonder why the behaviour without/with <Ctrl>H is
different. FWIW, my 'DOS' Code Page is set to 850, which, AFAIK, is the
correct one for ISO 8859/1.

  Any idea what could cause this difference in behaviour? (And if so,
how to fix it?)

  First I thought that these incorrect Outlook Express articles were a
one off, but apparently (see the mentioned thread (if you have the
stomach for it :-)) OE does the wrong thing (i.e. no MIME/in-line
encoding) by *default* (because it defaults to "Uuencode" instead of
MIME). I have seen the same problem in Dutch groups, so I'd rather fix
the problem on my side than trying to educate the ignorant masses (see
the thread to see where *that* (trying to educate) leads to :-)).

  Thanks in advance for any and all responses.
Re: [tin+Cygwin] (In)Correct display of local characters.
#172432
Author: Urs Janßen
Date: Tue, 30 Aug 2005 12:16
67 lines
3432 bytes
In <43142fc2$0$74156$dbd45001@news.wanadoo.nl>, Frank Slootweg wrote:
>   That works fine, but for postings which do *not* have the proper MIME
> headers or/and in-line encoding, local language characters are not
> properly displayed when I view the article normally, but are properly
> displayed if I use <Ctrl>H to display the header and the article.

chrl-h turns on 'raw' mode which does not try to convert the article
to the local charset and skips most of the checks which are usualy done
to protect the terminal from beeing put into some strange mode via a
sequendce of control chars.

postings without mime-headers have a default charset of US-ASCII
(7bit), so they "can't" contain any bit chars like the pound sign. if
they do, they are broken.

>   When I display the article normally, i.e. without (full) headers), the
> (English currency) pound symbol in the Subject: and in the second body-
> line come out as question marks.
> 
>   However if I use <Ctrl>H, to display the full headers and then the
> body, both pound symbols are displayed correctly (i.e. as pound
> symbols).
> 
>   I know that this is an incorrect article, because it should mention
> the correct character set (ISO 8859/1) in both the Subject: and MIME
> headers, but I wonder why the behaviour without/with <Ctrl>H is
> different. FWIW, my 'DOS' Code Page is set to 850, which, AFAIK, is the
> correct one for ISO 8859/1.
> 
>   Any idea what could cause this difference in behaviour? (And if so,
> how to fix it?)

you can assign another default charset to the group/hierarchie via
the attributes file, i.e.:

scope=*
undeclared_charset=ISO-8859-1

scope=pl.*,cz.*,hin.*,sk.*,hr.*
undeclared_charset=ISO-8859-2

scope=fj.*,japan.*
undeclared_charset=ISO-2022-JP-2

scope=han.*
undeclared_charset=EUC-KR

scope=relcom.*,ukr.*,fido7.*,ru.*
undeclared_charset=KOI8-U

scope=cn.*,alt.chinese.text
undeclared_charset=GB2312

scope=chinese.*,alt.chinese.text.big5,tw.*
undeclared_charset=Big5

scope=alt.chinese.text.hz
undeclared_charset=HZ

scope=microsoft.public.il.*
undeclared_charset=ISO-8859-8

urs
-- 
Jef Poskanzer:
"When people aren't stupid Usenet is even more useful. Too bad this happens
 so rarely."
Re: [tin+Cygwin] (In)Correct display of local characters.
#172433
Author: Frank Slootweg
Date: Tue, 30 Aug 2005 13:12
41 lines
2724 bytes
Urs Janßen <urs@buil.tin.org> wrote:
> In <43142fc2$0$74156$dbd45001@news.wanadoo.nl>, Frank Slootweg wrote:
> >   That works fine, but for postings which do *not* have the proper MIME
> > headers or/and in-line encoding, local language characters are not
> > properly displayed when I view the article normally, but are properly
> > displayed if I use <Ctrl>H to display the header and the article.
> 
> chrl-h turns on 'raw' mode which does not try to convert the article
> to the local charset and skips most of the checks which are usualy done
> to protect the terminal from beeing put into some strange mode via a
> sequendce of control chars.

  Thanks, Urs. That indeed explains the difference.

[deleted]

> >   Any idea what could cause this difference in behaviour? (And if so,
> > how to fix it?)
> 
> you can assign another default charset to the group/hierarchie via
> the attributes file, i.e.:
> 
> scope=*
> undeclared_charset=ISO-8859-1

  Great! Thanks. That indeed fixes it. I mainly read hierarchies in
which ISO 8859/1 is the most common character set, so a "scope=*" is
probably enough for me.

  OTOH, *now* I have the problem that I can no longer spot these broken
postings and hence can not whine#### educate people about them! The
dilemna is killing me! :-)

  So for the moment I think I will (also) add:

scope=news.software.readers
undeclared_charset=US-ASCII

:-)

  Thanks again.
Re: [tin+Cygwin] (In)Correct display of local characters.
#172475
Author: Urs Janßen
Date: Wed, 31 Aug 2005 12:08
20 lines
1838 bytes
In <43145b56$0$75362$dbd4b001@news.wanadoo.nl>, Frank Slootweg wrote:
>   OTOH, *now* I have the problem that I can no longer spot these broken
> postings and hence can not whine#### educate people about them! The
> dilemna is killing me! :-)
> 
>   So for the moment I think I will (also) add:
> 
> scope=news.software.readers
> undeclared_charset=US-ASCII

scope=*,!news.software.readers
undeclared_charset=ISO-8859-1

should be a bit more efficient


-- 
Jef Poskanzer:
"When people aren't stupid Usenet is even more useful. Too bad this happens
 so rarely."
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads