emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fixing Gnus, and string encoding question


From: Noam Postavsky
Subject: Re: Fixing Gnus, and string encoding question
Date: Fri, 5 Apr 2019 21:40:29 -0400

On Fri, 5 Apr 2019 at 16:50, Eric Abrahamsen <address@hidden> 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 via email to

[Prev in Thread] Current Thread [Next in Thread]