[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: |
Sun, 07 Apr 2019 10:17:46 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Andreas Schwab <address@hidden> writes:
> Symbol names can be unibyte and multibyte. Make sure to get that right.
> If you see ã instead of \343 then the symbol has a unibyte name.
I will meditate on this for a bit.
Andreas Schwab <address@hidden> writes:
> On Apr 06 2019, Eric Abrahamsen <address@hidden> wrote:
>
>> (with-temp-buffer
>> (set-buffer-multibyte t)
>> (let ((coding-system-for-read 'raw-text))
>> (insert-file-contents "active")
>> (goto-char (point-min))
>> (symbol-name (read (current-buffer)))))
>>
>> I'm trying to turn that into something that looks like
>> "nnml:ã\203\206ã\202¹ã\203\210"
>
> (decode-coding-string (symbol-name (read
> "nnml:\343\203\206\343\202\271\343\203\210")) 'latin-1)
That did it! What a relief. I'm not sure why 'latin-1 in particular, but
that aligns all the strings correctly. I'll try to figure that out.
Huge thanks to you and Noam!
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, 2019/04/05
- 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 <=
- 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
Re: Fixing Gnus, and string encoding question, Andreas Schwab, 2019/04/06