Gnus development mailing list
 help / color / mirror / Atom feed
From: Michael Piotrowski <mxp@dynalabs.de>
Subject: Re: Avoiding double encoding in subject
Date: Thu, 27 Jul 2006 17:55:11 +0200	[thread overview]
Message-ID: <x664hjt540.fsf@aix.cs.uni-magdeburg.de> (raw)
In-Reply-To: <v9fygosk9s.fsf@marauder.physik.uni-ulm.de>

On 2006-07-26 Reiner Steib <reinersteib+gmane@imap.cc> wrote:

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

[...]

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

[...]

> (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.

Something like option (2) plus user interaction might be the right
approach:

Gnus detects a RFC 2047-encoded string in a header.  If the charset is
known, everything is fine and it's decoded.  If the charset is
unknown, ask the user, e.g.:

  Unknown charset "iso-8859-17" in Subject header, what now? (c, u or C-h):

The user could then either type "c" and specify a charset which should
be used to interpret it or type "u" to accept it as unknown; in this
case I'd simply replace each octet with the replacement character
since there is now way to find out the character size of an unknown
encoding.

Greetings

-- 
Michael Piotrowski, M.A.                               <mxp@dynalabs.de>
Public key at <http://www.dynalabs.de/mxp/pubkey.txt>




  reply	other threads:[~2006-07-27 15:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-26 11:00 Reiner Steib
2006-07-27 15:55 ` Michael Piotrowski [this message]
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=x664hjt540.fsf@aix.cs.uni-magdeburg.de \
    --to=mxp@dynalabs.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).