Gnus development mailing list
 help / color / mirror / Atom feed
From: Reiner Steib <reinersteib+gmane@imap.cc>
Subject: Avoiding double encoding in subject
Date: Wed, 26 Jul 2006 13:00:47 +0200	[thread overview]
Message-ID: <v9fygosk9s.fsf@marauder.physik.uni-ulm.de> (raw)

Hi,

when replying to an article who's subject contains an unknown (or
invalid) encoding...

| Newsgroups: gmane.test
| Archived-At: <http://permalink.gmane.org/gmane.test/3051>
| Message-ID: <v94px7cjcs.fsf@marauder.physik.uni-ulm.de>
| Subject: bogus or unknown charset in =?iso-8859-17?Q?=E4?= subject

-- i.e. the charset is unknown to (X)Emacs[1] -- and not present in
`mm-charset-synonym-alist', Gnus produces a subject like...

| Newsgroups: gmane.test
| Archived-At: <http://permalink.gmane.org/gmane.test/3052>
| Message-ID: <v9y7ujb39h.fsf@marauder.physik.uni-ulm.de>
| Subject: Re: bogus or unknown charset in =?us-ascii?Q?=3D=3Fiso-8859-17=3F?=
|  =?us-ascii?Q?Q=3F=3DE4=3F=3D?= subject

Bad.

I'm not sure how Gnus should handle this situation.  Some
possibilities:

(1) Gnus could (probably, I don't know if it is feasible to implement
    this) mark the Subject as "not decoded" and resend it "as is"
    without the double[2] us-ascii encoding.  Gnus also has to make
    sure that this mark survives when the article is saved to the
    drafts folder.

    Problem: If the given charset is really invalid rather than
    unknown (the user usually can't decide), Gnus will also produce an
    incorrect article.

(2) Gnus' decoder could replace the unknown/invalid characters with a
    replacement character ("?", U+FFFD = REPLACEMENT CHARACTER, ...).

    Problem: It's probably not possible to get the number of
    replacement characters right.

Other suggestions?

Bye, Reiner.

[1] This may happen when (X)Emacs is to old to support a newly
    introduced charset.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/




             reply	other threads:[~2006-07-26 11:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-26 11:00 Reiner Steib [this message]
2006-07-27 15:55 ` Michael Piotrowski
2006-11-06 20:00   ` Reiner Steib
2006-11-09 18:13     ` Reiner Steib

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=v9fygosk9s.fsf@marauder.physik.uni-ulm.de \
    --to=reinersteib+gmane@imap.cc \
    --cc=Reiner.Steib@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).