🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
22 messages
22 total messages Started by Ammammata Mon, 27 Apr 2020 14:29
[xnews] italian accented vowels in subject
#264081
Author: Ammammata
Date: Mon, 27 Apr 2020 14:29
17 lines
1446 bytes
sometimes it happens that if there is an accented vowel in the subject I 
got an error message

now I just put one in the subject ( è )

lets try to send...

ERROR
441 Invalid syntax encountered in Subject: header field body (unexpected 
byte or empty content line)

Now I remove the letter é and try again to send

-- 
/-\ /\/\ /\/\ /-\ /\/\ /\/\ /-\ T /-\
-=- -=- -=- -=- -=- -=- -=- -=- - -=-
........... [ al lavoro ] ...........
Re: [xnews] italian accented vowels in subject
#264080
Author: Ammammata
Date: Mon, 27 Apr 2020 14:30
16 lines
1450 bytes
Il giorno Mon 27 Apr 2020 04:29:42p, *Ammammata* ha inviato su 
news.software.readers il messaggio 
news:XnsABACA7CD75322ammammatatiscalineti@148.251.67.112. Vediamo cosa ha 
scritto:

> 
> Now I remove the letter é and try again to send
> 
> 

sent :/

-- 
/-\ /\/\ /\/\ /-\ /\/\ /\/\ /-\ T /-\
-=- -=- -=- -=- -=- -=- -=- -=- - -=-
........... [ al lavoro ] ...........
Re: [mesnews] italian accented vowels in subject éàè
#264083
Author: Ammammata
Date: Mon, 27 Apr 2020 14:32
15 lines
1667 bytes
On Monday 27/04/2020 Ammammata wrote:
> Il giorno Mon 27 Apr 2020 04:29:42p, *Ammammata* ha inviato su 
> news.software.readers il messaggio 
> news:XnsABACA7CD75322ammammatatiscalineti@148.251.67.112. Vediamo cosa ha 
> scritto:
>
>> 
>> Now I remove the letter é and try again to send
>> 
> sent :/

trying again with mesnews, I put again accented letters in subject

-- 
/-\ /\/\ /\/\ /-\ /\/\ /\/\ /-\ T /-\
Re: [mesnews] italian accented vowels in subject éàè
#264082
Author: Ammammata
Date: Mon, 27 Apr 2020 14:33
18 lines
1803 bytes
On Monday 27/04/2020 Ammammata wrote:
> On Monday 27/04/2020 Ammammata wrote:
>> Il giorno Mon 27 Apr 2020 04:29:42p, *Ammammata* ha inviato su 
>> news.software.readers il messaggio 
>> news:XnsABACA7CD75322ammammatatiscalineti@148.251.67.112. Vediamo cosa ha 
>> scritto:
>>
>>> 
>>> Now I remove the letter é and try again to send
>>> 
>> sent :/
>
> trying again with mesnews, I put again accented letters in subject

sent, so it's a xnews problem, ok: any tip?

-- 
/-\ /\/\ /\/\ /-\ /\/\ /\/\ /-\ T /-\
Re: [mesnews] italian accented vowels in subject éàè
#264087
Author: Grant Taylor
Date: Mon, 27 Apr 2020 15:49
12 lines
1329 bytes
On 4/27/20 8:33 AM, Ammammata wrote:
> sent, so it's a xnews problem, ok: any tip?

Does xnews support encoding non-ASCII characters in Subjects?

That ability is what's required to support éàè and friends.



-- 
Grant. . . .
unix || die
Re: [mesnews] italian accented vowels in subject éàè
#264086
Author: Adam H. Kerman
Date: Mon, 27 Apr 2020 16:02
38 lines
2174 bytes
Ammammata <ammammata@tiscali.it> wrote:
>On Monday 27/04/2020 Ammammata wrote:
>>On Monday 27/04/2020 Ammammata wrote:

>>>Il giorno Mon 27 Apr 2020 04:29:42p, *Ammammata* ha inviato su 
>>>news.software.readers il messaggio 
>>>news:XnsABACA7CD75322ammammatatiscalineti@148.251.67.112. Vediamo cosa ha 
>>>scritto:

>>>>Now I remove the letter [e with accent] and try again to send

>>>sent :/

>>trying again with mesnews, I put again accented letters in subject

>sent, so it's a xnews problem, ok: any tip?

The letter e with accent is a two-byte UTF-8 sequence. You MUST NOT put
such characters on Subject. Header lines like Subject and From require
the use of encoded word to represent such letters.

This is your Subject:

Subject: Re: =?ISO-8859-15?Q?[mesnews]_italian_accented_vowels_in_subject_?=
        =?ISO-8859-15?Q?=E9=E0=E8?=

It's using encoded word DESPITE having nothing to encode. That's just
wrong.

Your MIME headers for the article itself indicate the use of
ISO-8859-15:1999 Latin-9, the 8-bit character set that differs from
Latin-1 by just a few character codes.

But you're using a two-byte sequence for the e with accent and NOT an
8-bit character.

In a Latin-X character set, you MUST NOT use two-byte UTF-8 character
codes.
Re: [mesnews] italian accented vowels in subject éàè
#264088
Author: Michael Bäuerle
Date: Mon, 27 Apr 2020 16:20
34 lines
2536 bytes
Ammammata wrote:
> On Monday 27/04/2020 Ammammata wrote:
> > On Monday 27/04/2020 Ammammata wrote:
> > > Ammammata wrote:
> > > > 
> > > > Now I remove the letter é and try again to send
> > > 
> > > sent :/
> > 
> > trying again with mesnews, I put again accented letters in subject
> 
> sent, so it's a xnews problem, ok: any tip?

Non-ASCII characters in header fields (like "Subject") must be MIME
encoded according to RFC 2047 [1].

Wikipedia says in [2]:
| 
| Xnews does not support UTF-8 (or any other character set encoding),
| making it difficult or even impossible to use for reading or posting
| articles in languages other than English. It is, however, possible
| to run Xnews with "Mime-proxy" to at least partially work around this
| issue.

Looks like there is no internal MIME support in Xnews and you need an
external utility for this to work.

Supersede: Some "Mime-proxy" related stuff in italian:
<https://digilander.libero.it/xnews/mimeproxy/mime.html>


______________
[1] <https://tools.ietf.org/html/rfc2047>
[2] <https://en.wikipedia.org/wiki/Xnews>
Re: [mesnews] italian accented vowels in subject éàè
#264089
Author: Adam H. Kerman
Date: Mon, 27 Apr 2020 16:21
44 lines
2370 bytes
Michael Bäuerle  <michael.baeuerle@gmx.net> wrote:
>Ammammata wrote:
>> On Monday 27/04/2020 Ammammata wrote:
>> > On Monday 27/04/2020 Ammammata wrote:
>> > > Ammammata wrote:
>> > > > 
>> > > > Now I remove the letter é and try again to send
>> > > 
>> > > sent :/
>> > 
>> > trying again with mesnews, I put again accented letters in subject
>> 
>> sent, so it's a xnews problem, ok: any tip?
>
>Non-ASCII characters in header fields (like "Subject") must be MIME
>encoded according to RFC 2047 [1].

Please say "encoded-word" as most people think of MIME as the header
describing the character set used in the article, not other header
lines. Yeah, I know MIME was a set of RFCs.

>Wikipedia says in [2]:
>| 
>| Xnews does not support UTF-8 (or any other character set encoding),
>| making it difficult or even impossible to use for reading or posting
>| articles in languages other than English. It is, however, possible
>| to run Xnews with "Mime-proxy" to at least partially work around this
>| issue.
>
>Looks like there is no internal MIME support in Xnews and you need an
>external utility for this to work.
>
>
>______________
>[1] <https://tools.ietf.org/html/rfc2047>
>[2] <https://en.wikipedia.org/wiki/Xnews>

Oh my gawd.

You've got UTF-8 characters in your article, but both your MIME headers
and encoded-word on Subject and From indicate ISO-8859-1 Latin-1.

I'm not using MIME headers in this followup article to avoid
contributing even more confusion.
Re: [mesnews] italian accented vowels in subject éàè
#264090
Author: Michael Bäuerle
Date: Mon, 27 Apr 2020 16:55
29 lines
2389 bytes
Adam H. Kerman wrote:
> 
> This is your Subject:
> 
> Subject: Re: =?ISO-8859-15?Q?[mesnews]_italian_accented_vowels_in_subject_?=
>         =?ISO-8859-15?Q?=E9=E0=E8?=
> 
> It's using encoded word DESPITE having nothing to encode. That's just
> wrong.

Obviously it is more complicated than required, but the syntax looks
correct. It would only be "wrong" if RFC 2047 forbids it.

> Your MIME headers for the article itself indicate the use of
> ISO-8859-15:1999 Latin-9, the 8-bit character set that differs from
> Latin-1 by just a few character codes.
> 
> But you're using a two-byte sequence for the e with accent and NOT an
> 8-bit character.
> 
> In a Latin-X character set, you MUST NOT use two-byte UTF-8 character
> codes.

Please look at the article <news:mn.dbe17e446ab53374.128223@tiscali.it>
again. I can see no Unicode in this article, neither in the header nor
in the body.

The same for my articles in this thread (that use ISO 8859-1 encoding,
as specified in the MIME labels).
Re: [xnews] italian accented vowels in subject
#264093
Author: Ralph Fox
Date: Mon, 27 Apr 2020 18:52
33 lines
1965 bytes
On Mon, 27 Apr 2020 14:29:42 -0000 (UTC), Ammammata wrote:

> sometimes it happens that if there is an accented vowel in the subject I 
> got an error message
> 
> now I just put one in the subject ( è )
> 
> lets try to send...
> 
> ERROR
> 441 Invalid syntax encountered in Subject: header field body (unexpected 
> byte or empty content line)
> 
> Now I remove the letter é and try again to send

Ammammata

Your new server news.solani.org is rejecting messages with a 441 error 
when the message subject contains non-ASCII characters which are not 
encoded.

ASCII us a 7-bit character set and  éàè  are not 7-bit ASCII characters.

Xnews does not know how to encode non-ASCII characters in the subject.
MesNews is able to do this.

If you use Mime-proxy with Xnews, then Mime-proxy has an option to encode 
non-ASCII characters in the subject of outgoing messages.


-- 
Kind regards
Ralph
Re: [xnews] italian accented vowels in subject
#264103
Author: s|b
Date: Mon, 27 Apr 2020 19:51
8 lines
1096 bytes
On Mon, 27 Apr 2020 14:29:42 -0000 (UTC), Ammammata wrote:

> User-Agent: Xnews/??.01.30

Have you tried version 2006.08.24?

-- 
s|b
Re: [mesnews] italian accented vowels in subject éàè
#264095
Author: Adam H. Kerman
Date: Mon, 27 Apr 2020 20:56
53 lines
2778 bytes
Michael Bäuerle  <michael.baeuerle@gmx.net> wrote:
>Adam H. Kerman wrote:

>>This is your Subject:

>>Subject: Re: =?ISO-8859-15?Q?[mesnews]_italian_accented_vowels_in_subject_?=
>>        =?ISO-8859-15?Q?=E9=E0=E8?=

>>It's using encoded word DESPITE having nothing to encode. That's just
>>wrong.

>Obviously it is more complicated than required, but the syntax looks
>correct. It would only be "wrong" if RFC 2047 forbids it.

RFC 2047 does not control what the best practice is for posting a
conventional News article. I didn't say "nonstandard with respect to RFC
2047". I said it was wrong.

Posting a followup with mismatches between attribution lines and quoting
levels wouldn't be nonstandard with respect to RFC 2047 either.
Nevertheless, it's the wrong thing to do.

Your point is not well taken.

>>Your MIME headers for the article itself indicate the use of
>>ISO-8859-15:1999 Latin-9, the 8-bit character set that differs from
>>Latin-1 by just a few character codes.

>>But you're using a two-byte sequence for the e with accent and NOT an
>>8-bit character.

>>In a Latin-X character set, you MUST NOT use two-byte UTF-8 character
>>codes.

>Please look at the article <news:mn.dbe17e446ab53374.128223@tiscali.it>
>again. I can see no Unicode in this article, neither in the header nor
>in the body.

>The same for my articles in this thread (that use ISO 8859-1 encoding,
>as specified in the MIME labels).

I'm just going by what the translation in the terminal emulator shows
me. When I'm translating as UTF-8, it doesn't display the desired glyph
for 8-bit character codes.

When I have to change the translation to UTF-8 to display a specific
character, then that tells me that a two-byte Unicode character code has
been used.

I typically have my translation set to ISO-8859-1.

Oddly, the precursor article is no longer on my News server. Did you
cancel it?
Re: [mesnews]_italian_accented_vowels_in_subject àéàéèàéèàéèàéèàèéàèéàèéàèé
#264099
Author: Ammammata
Date: Tue, 28 Apr 2020 08:08
15 lines
1844 bytes
Il giorno Mon 27 Apr 2020 04:33:13p, *Ammammata* ha inviato su 
news.software.readers il messaggio 
news:mn.dbe17e446ab53374.128223@tiscali.it. Vediamo cosa ha scritto:

> 
> sent, so it's a xnews problem, ok: any tip?
> 
> 

I installed MIME proxy and put again some accented vowels in the subject

-- 
/-\ /\/\ /\/\ /-\ /\/\ /\/\ /-\ T /-\
-=- -=- -=- -=- -=- -=- -=- -=- - -=-
........... [ al lavoro ] ...........
Re: [mesnews]_italian_accented_vowels_in_subject àéàéèàéèàéèàéèàèéàèéàèéàèé
#264100
Author: Ammammata
Date: Tue, 28 Apr 2020 08:09
17 lines
1896 bytes
Il giorno Tue 28 Apr 2020 10:08:26a, *Ammammata* ha inviato su 
news.software.readers il messaggio 
news:XnsABAD672975ABCammammatatiscalineti@127.0.0.1. Vediamo cosa ha 
scritto:

> I installed MIME proxy and put again some accented vowels in the subject
> 
> 

well well well, sounds good :) 



-- 
/-\ /\/\ /\/\ /-\ /\/\ /\/\ /-\ T /-\
-=- -=- -=- -=- -=- -=- -=- -=- - -=-
........... [ al lavoro ] ...........
Re: [mesnews] italian accented vowels in subject éàè
#264101
Author: Michael Bäuerle
Date: Tue, 28 Apr 2020 08:35
72 lines
3957 bytes
Adam H. Kerman wrote:
> Michael Bäuerle wrote:
> > Adam H. Kerman wrote:
> > > 
> > > [...]
> > > Your MIME headers for the article itself indicate the use of
> > > ISO-8859-15:1999 Latin-9, the 8-bit character set that differs from
> > > Latin-1 by just a few character codes.
> > > 
> > > But you're using a two-byte sequence for the e with accent and NOT an
> > > 8-bit character.
> > > 
> > > In a Latin-X character set, you MUST NOT use two-byte UTF-8 character
> > > codes.
> > 
> > Please look at the article <news:mn.dbe17e446ab53374.128223@tiscali.it>
> > again. I can see no Unicode in this article, neither in the header nor
> > in the body.
> > 
> > The same for my articles in this thread (that use ISO 8859-1 encoding,
> > as specified in the MIME labels).
> 
> I'm just going by what the translation in the terminal emulator shows
> me. When I'm translating as UTF-8, it doesn't display the desired glyph
> for 8-bit character codes.

No surprise, because there are no UTF-8 sequences.

> When I have to change the translation to UTF-8 to display a specific
> character, then that tells me that a two-byte Unicode character code has
> been used.

I recommend to use a hex viewer/editor on the raw article instead.
Output from hexedit for the relevant body part:
| 
| [...]
| 00000624   0A 3E 3E 3E  20 0D 0A 3E  3E 3E 20 4E  .>>> ..>>> N
| 00000630   6F 77 20 49  20 72 65 6D  6F 76 65 20  ow I remove
| 0000063C   74 68 65 20  6C 65 74 74  65 72 20 E9  the letter .
                                                ^^             ^
| 00000648   20 61 6E 64  20 74 72 79  20 61 67 61   and try aga
| [...]

The character at index 647h is the 'é' and is encoded as E9h (not
with an UTF-8 sequence).

The content type was declared in the header as:
| 
| Content-Type: text/plain; charset="iso-8859-15"; format=flowed

According to ISO 8859-15 [1] the codepoint E9h means 'é'.
Nothing wrong there with the article.

> I typically have my translation set to ISO-8859-1.

The codepoint E9h has the same meaning in ISO 8859-1 [2] and you
should nevertheless see 'é'. If not, there is something wrong with
your setup. Maybe your xterm (or whatever you use) runs with a
different locale configuration than the shell inside it.

> Oddly, the precursor article is no longer on my News server. Did you
> cancel it?

I have superseded it because of a typo:
| 
| Message-ID: <AABepw6J6iQAADXQ.A1.flnews@WStation5.stz-e.de>
| Supersedes: <AABepw26+PAAADXQ.A1.flnews@WStation5.stz-e.de>


_______________
[1] <https://en.wikipedia.org/wiki/ISO/IEC_8859-15#Codepage_layout>
[2] <https://en.wikipedia.org/wiki/ISO/IEC_8859-1#Code_page_layout>
Re: [mesnews]_italian_accented_vowels_in_subject àéàéèàéèàéèàéèàèéàèéàèéàèé
#264102
Author: Michael Bäuerle
Date: Tue, 28 Apr 2020 08:42
10 lines
1648 bytes
Ammammata wrote:
> Ammammata wrote:
> > 
> > I installed MIME proxy and put again some accented vowels in the subject
> 
> well well well, sounds good :) 

Yes. Does it work for the body too?

àéàéèàéèàéèàéèàèéàèéàèéàèé
Re: [mesnews]_italian_accented_vowels_in_subject àéàéèàéèàéèàéèàèéàèéàèéàèé
#264104
Author: Ammammata
Date: Tue, 28 Apr 2020 09:48
23 lines
2157 bytes
Il giorno Tue 28 Apr 2020 10:42:57a, *Michael Bäuerle* ha inviato su
news.software.readers il messaggio
news:AABep+yRV4oAAAXT.A1.flnews@WStation5.stz-e.de. Vediamo cosa ha
scritto: 

> Ammammata wrote:
>> Ammammata wrote:
>> > 
>> > I installed MIME proxy and put again some accented vowels in the
>> > subject 
>> 
>> well well well, sounds good :) 
> 
> Yes. Does it work for the body too?
> 
> àéàéèàéèàéèàéèàèéàèéàèéàèé

yes, I made a test on az.test

-- 
/-\ /\/\ /\/\ /-\ /\/\ /\/\ /-\ T /-\
-=- -=- -=- -=- -=- -=- -=- -=- - -=-
........... [ al lavoro ] ...........
Re: [mesnews]_italian_accented_vowels_in_subject àéàéèàéèàéèàéèàèéàèéàèéàèé
#264105
Author: Michael Bäuerle
Date: Tue, 28 Apr 2020 14:56
42 lines
2869 bytes
Ammammata wrote:
> 
> Il giorno Tue 28 Apr 2020 10:42:57a, *Michael Bäuerle* ha inviato su
> news.software.readers il messaggio
> news:AABep+yRV4oAAAXT.A1.flnews@WStation5.stz-e.de. Vediamo cosa ha
> scritto: 

Is this 4-line introduction intended?

> > Ammammata wrote:
> > > Ammammata wrote:
> > > > 
> > > > I installed MIME proxy and put again some accented vowels in the
> > > > subject 
> > > 
> > > well well well, sounds good :) 
> > 
> > Yes. Does it work for the body too?
> > 
> > àéàéèàéèàéèàéèàèéàèéàèéàèé
> 
> yes, I made a test on az.test

Encoding of the body looks good.

Mime-Proxy generated this header field for "Subject":
| 
| Subject: Re: [mesnews]_italian_accented_vowels_in_subject
|  =?iso-8859-1?Q?=E0=E9=E0=E9=E8=E0=E9=E8=E0=E9=E8=E0=E9=E8=E0=E8=E9=E0=E8=E9=E0=E8=E9=E0=E8=E9?=

The second line is too long, RFC 2047 says in section 2 [1]:
| 
| While there is no limit to the length of a multiple-line header
| field, each line of a header field that contains one or more
| 'encoded-word's is limited to 76 characters.

I don't know if Mime-Proxy can be configured to do it as defined.
But it's likely good enough that most newsreaders will understand it.


______________
[1] <https://tools.ietf.org/html/rfc2047#section-2>
Re: [mesnews] italian accented vowels in subject éàè
#264106
Author: Adam H. Kerman
Date: Tue, 28 Apr 2020 15:34
14 lines
1383 bytes
Michael Bauerle  <michael.baeuerle@gmx.net> wrote:
>Adam H. Kerman wrote:
 
>>I'm just going by what the translation in the terminal emulator shows
>>me. When I'm translating as UTF-8, it doesn't display the desired glyph
>>for 8-bit character codes.

>No surprise, because there are no UTF-8 sequences.

I was just pointing out in other cases that the terminal emulation does
what's expected.

I will look into this further. If what you're saying is correct,
something didn't translate to the proper glyph on my end.
Re: [mesnews] italian accented vowels in subject éàè
#264107
Author: Michael Bäuerle
Date: Tue, 28 Apr 2020 16:25
23 lines
2120 bytes
Adam H. Kerman wrote:
> Michael Bauerle  <michael.baeuerle@gmx.net> wrote:
> > Adam H. Kerman wrote:
> > > 
> > > I'm just going by what the translation in the terminal emulator shows
> > > me. When I'm translating as UTF-8, it doesn't display the desired glyph
> > > for 8-bit character codes.
> > 
> > No surprise, because there are no UTF-8 sequences.
> 
> I was just pointing out in other cases that the terminal emulation does
> what's expected.
> 
> I will look into this further. If what you're saying is correct,
> something didn't translate to the proper glyph on my end.

Look at the locale used for the terminal emulation first.

Today I saw the same error while connected from a fresh installed
GNU/Linux to my NetBSD system (that is configured to use ISO 8859-1
locale). The GNU/Linux system uses UTF-8 locale by default and
therefore the terminal expected UTF-8 (but my NetBSD ssh-session
used ISO 8859-1, as configured there).
Re: [mesnews] italian accented vowels in subject éàè
#264108
Author: Adam H. Kerman
Date: Tue, 28 Apr 2020 17:36
28 lines
1974 bytes
Michael Bauerle <michael.baeuerle@gmx.net> wrote:
>Adam H. Kerman wrote:
>>Michael Bauerle <michael.baeuerle@gmx.net> wrote:
>>>Adam H. Kerman wrote:

>>>>I'm just going by what the translation in the terminal emulator shows
>>>>me. When I'm translating as UTF-8, it doesn't display the desired glyph
>>>>for 8-bit character codes.

>>>No surprise, because there are no UTF-8 sequences.

>>I was just pointing out in other cases that the terminal emulation does
>>what's expected.

>>I will look into this further. If what you're saying is correct,
>>something didn't translate to the proper glyph on my end.

>Look at the locale used for the terminal emulation first.

>Today I saw the same error while connected from a fresh installed
>GNU/Linux to my NetBSD system (that is configured to use ISO 8859-1
>locale). The GNU/Linux system uses UTF-8 locale by default and
>therefore the terminal expected UTF-8 (but my NetBSD ssh-session
>used ISO 8859-1, as configured there).

Hm. It's UTF-8, but I thought the terminal emulation setting overrode that.

I guess both have to match at all times.
Re: [mesnews] italian accented vowels in subject éàè
#264109
Author: Michael Bäuerle
Date: Tue, 28 Apr 2020 18:41
24 lines
2191 bytes
Adam H. Kerman wrote:
> Michael Bauerle <michael.baeuerle@gmx.net> wrote:
> > Adam H. Kerman wrote:
> > > 
> > > I will look into this further. If what you're saying is correct,
> > > something didn't translate to the proper glyph on my end.
> > 
> > Look at the locale used for the terminal emulation first.
> > 
> > Today I saw the same error while connected from a fresh installed
> > GNU/Linux to my NetBSD system (that is configured to use ISO 8859-1
> > locale). The GNU/Linux system uses UTF-8 locale by default and
> > therefore the terminal expected UTF-8 (but my NetBSD ssh-session
> > used ISO 8859-1, as configured there).
> 
> Hm. It's UTF-8, but I thought the terminal emulation setting overrode that.
> 
> I guess both have to match at all times.

Yes. The side that creates the data must use the same encoding as the
receiving side is using for interpretation.

Otherwise the displayed data will be broken or only correct by
coincidence (when some guessing algorithm has taken the right choice).
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