[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fixing Gnus, and string encoding question
From: |
Eric Abrahamsen |
Subject: |
Re: Fixing Gnus, and string encoding question |
Date: |
Fri, 05 Apr 2019 19:22:18 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Noam Postavsky <address@hidden> writes:
> 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:テスト"
No, unfortunately -- that would make everything much easier. Eventually
the idea will be to decode the strings into plain utf-8-emacs, but for
now I'm stuck keeping them in this weird half-state. I literally need a
conversion between the two versions above.
If this turns out to be too ridiculous, I'll re-slice things as I
mentioned earlier, and leave these group names as symbols.
Eric
- Fixing Gnus, and string encoding question, Eric Abrahamsen, 2019/04/05
- Re: Fixing Gnus, and string encoding question, Noam Postavsky, 2019/04/05
- Re: Fixing Gnus, and string encoding question,
Eric Abrahamsen <=
- Re: Fixing Gnus, and string encoding question, Noam Postavsky, 2019/04/05
- Re: Fixing Gnus, and string encoding question, Eric Abrahamsen, 2019/04/06
- Re: Fixing Gnus, and string encoding question, Eric Abrahamsen, 2019/04/07
- Re: Fixing Gnus, and string encoding question, Andreas Schwab, 2019/04/07
- Re: Fixing Gnus, and string encoding question, Eric Abrahamsen, 2019/04/07
- Re: Fixing Gnus, and string encoding question, Noam Postavsky, 2019/04/07
- Re: Fixing Gnus, and string encoding question, Andreas Schwab, 2019/04/07
- Re: Fixing Gnus, and string encoding question, Andreas Schwab, 2019/04/07
- Re: Fixing Gnus, and string encoding question, Eli Zaretskii, 2019/04/06
- Re: Fixing Gnus, and string encoding question, Eric Abrahamsen, 2019/04/06