unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Noam Postavsky <npostavs@gmail.com>
To: Eric Abrahamsen <eric@ericabrahamsen.net>
Cc: Emacs developers <emacs-devel@gnu.org>
Subject: Re: Fixing Gnus, and string encoding question
Date: Fri, 5 Apr 2019 21:40:29 -0400	[thread overview]
Message-ID: <CAM-tV--cSex5HH3nA1_mVDddLTSjxcyhsjnAbCVXYx2T9ZsUDg@mail.gmail.com> (raw)
In-Reply-To: <87d0m0qivv.fsf@ericabrahamsen.net>

On Fri, 5 Apr 2019 at 16:50, Eric Abrahamsen <eric@ericabrahamsen.net> wrote:

> Katsumi Yamaoka's example is the group whose decoded name is "nnml:テス
> ト". This is written to .newsrc.eld as the string:
>
> "nnml:\343\203\206\343\202\271\343\203\210"

> nnml:\343\203\206\343\202\271\343\203\210

> "nnml:ã\203\206ã\202¹ã\203\210"

> I don't know how to turn either of these strings into the other --
> either direction would work, but I don't know how.

Are you maybe looking for decode-coding-string?

(decode-coding-string
 "nnml:\343\203\206\343\202\271\343\203\210" 'utf-8) ;=> "nnml:テスト"

(decode-coding-string
 (symbol-name (read "nnml:\343\203\206\343\202\271\343\203\210"))
 'utf-8) ;=> "nnml:テスト"



  reply	other threads:[~2019-04-06  1:40 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-05 20:47 Fixing Gnus, and string encoding question Eric Abrahamsen
2019-04-06  1:40 ` Noam Postavsky [this message]
2019-04-06  2:22   ` Eric Abrahamsen
2019-04-06  3:56     ` Noam Postavsky
2019-04-07  2:32       ` Eric Abrahamsen
2019-04-07  4:10       ` Eric Abrahamsen
2019-04-07  7:05         ` Andreas Schwab
2019-04-07 17:17           ` Eric Abrahamsen
2019-04-07 11:59         ` Noam Postavsky
2019-04-07 12:18           ` Andreas Schwab
2019-04-07 12:41         ` Andreas Schwab
2019-04-06  6:20     ` Eli Zaretskii
2019-04-07  2:30       ` Eric Abrahamsen
2019-04-06  8:26 ` Andreas Schwab

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=CAM-tV--cSex5HH3nA1_mVDddLTSjxcyhsjnAbCVXYx2T9ZsUDg@mail.gmail.com \
    --to=npostavs@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=eric@ericabrahamsen.net \
    /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 public inbox

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

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 read-only IMAP folder(s) and NNTP newsgroup(s).