all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Adam Sjøgren" <asjo@koldfront.dk>
To: ding@gnus.org
Cc: emacs-devel@gnu.org
Subject: Re: Resending email in Gnus, figuring out charset
Date: Wed, 31 Oct 2018 20:43:44 +0100	[thread overview]
Message-ID: <87muqtlx5b.fsf@tullinup.koldfront.dk> (raw)
In-Reply-To: 83ftwmhqqy.fsf@gnu.org

Eli writes:

>> The Content-Transfer-Encoding: 8bit header means "raw bytes in the
>> body", and the Content-Type: text/plain; charset=utf-8 explains how
>> those bytes should be interpreted, right?
>
> These headers tell the receiving end how to interpret the message.

Yes. So as I received this email, Gnus should be interpreting the bytes
at utf-8. And it seems to be, as they are displayed correctly.

> But I meant something different: what you have in the Gnus buffer
> _before_ the message is sent.

Before I resend the message, the buffer looks correct (i.e. I see the
the arrow and the accented e rather than \nnn\nnn\nnn etc.)

>> When I look at the feedbase-email in Gnus, it is displayed as expected,
>> but when I try to resend it, for some reason Gnus can't guess what the
>> encoding should be.
>
> That's a sign of raw bytes in the buffer.
>
> If you go to one of the offending characters in the Gnus buffer and
> type "C-u C-x =", what does Emacs show about those characters?

Ok, if I open the feedbase-email in Gnus, before I press S D r to
resend, and move point to → and é in the *Article* buffer, I get:

               position: 530 of 684 (77%), column: 1
              character: → (displayed as →) (codepoint 8594, #o20622, #x2192)
      preferred charset: unicode (Unicode (ISO10646))
  code point in charset: 0x2192
                 script: symbol
                 syntax: . 	which means: punctuation
               category: .:Base, c:Chinese, h:Korean, j:Japanese
               to input: type "C-x 8 RET 2192" or "C-x 8 RET RIGHTWARDS ARROW"
            buffer code: #xE2 #x86 #x92
              file code: #xE2 #x86 #x92 (encoded by coding system utf-8-unix)
                display: by this font (glyph code)
      xft:-PfEd-DejaVu Sans Mono-normal-normal-normal-*-20-*-*-*-m-0-iso10646-1 (#x7AE)

  Character code properties: customize what to show
    name: RIGHTWARDS ARROW
    old-name: RIGHT ARROW
    general-category: Sm (Symbol, Math)
    decomposition: (8594) ('→')

and:

               position: 284 of 684 (41%), column: 6
              character: é (displayed as é) (codepoint 233, #o351, #xe9)
      preferred charset: unicode (Unicode (ISO10646))
  code point in charset: 0xE9
                 script: latin
                 syntax: w 	which means: word
               category: .:Base, L:Left-to-right (strong), c:Chinese, j:Japanese, l:Latin, v:Viet
               to input: type "C-x 8 RET e9" or "C-x 8 RET LATIN SMALL LETTER E WITH ACUTE"
            buffer code: #xC3 #xA9
              file code: #xC3 #xA9 (encoded by coding system utf-8-unix)
                display: by this font (glyph code)
      xft:-PfEd-DejaVu Sans Mono-normal-normal-normal-*-20-*-*-*-m-0-iso10646-1 (#xAB)

  Character code properties: customize what to show
    name: LATIN SMALL LETTER E WITH ACUTE
    old-name: LATIN SMALL LETTER E ACUTE
    general-category: Ll (Letter, Lowercase)
    decomposition: (101 769) ('e' '́')


  Best regards,

    Adam

-- 
 "God must've been punting angels left and right."            Adam Sjøgren
                                                         asjo@koldfront.dk




  reply	other threads:[~2018-10-31 19:43 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-29 19:19 Resending email in Gnus, figuring out charset Adam Sjøgren
2018-10-29 21:15 ` Andreas Schwab
2018-10-29 21:21   ` Adam Sjøgren
2018-10-30  6:23     ` Eli Zaretskii
2018-10-31 18:51       ` Adam Sjøgren
2018-10-31 18:59         ` Andreas Schwab
2018-10-31 19:42           ` Adam Sjøgren
2018-10-31 19:15         ` Eli Zaretskii
2018-10-31 19:43           ` Adam Sjøgren [this message]
2018-10-31 20:10             ` Eli Zaretskii
2018-10-31 20:22               ` Adam Sjøgren
2018-10-31 21:11                 ` Resending email in Gnus, figuring out charset [solved] Adam Sjøgren
2018-10-29 21:32   ` Resending email in Gnus, figuring out charset Adam Sjøgren
2018-10-29 21:38     ` Adam Sjøgren

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=87muqtlx5b.fsf@tullinup.koldfront.dk \
    --to=asjo@koldfront.dk \
    --cc=ding@gnus.org \
    --cc=emacs-devel@gnu.org \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.