Groups | Search | Server Info | Login | Register
| From | Lawrence D’Oliveiro <ldo@nz.invalid> |
|---|---|
| Newsgroups | comp.emacs |
| Subject | Re: Fixing Garbled Encodings |
| Date | 2026-02-24 20:24 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <10nl1du$6bih$1@dont-email.me> (permalink) |
| References | (2 earlier) <10n0olg$1erpn$1@dont-email.me> <slrn10p932m.5h9c.jcb@kotte.inf.ed.ac.uk> <10nj0eh$3g050$1@dont-email.me> <10nja5p$3j6lg$1@dont-email.me> <87ldgiwr02.fsf@parhasard.net> |
On Tue, 24 Feb 2026 07:16:29 +0000, Aidan Kehoe wrote:
> XEmacs doesn’t have either (no “bytes” object, no differential
> between unibyte and multibyte) and these problems do not really
> arise, which is, I think, the better approach.
That seems a bit implausible. Can you confirm that with an experiment?
First, capture the output of the following Python code
s = "“±”"
print("".join(chr(b) for b in s.encode()))
directly into an Emacs buffer. It should look like
â\200\234±â\200\235
except that each backslash-octal sequence is a single character. Then
try using the decode-coding-string function on that string, and see if
you get the original text (the value of the s variable in the Python
code) back.
When I try it in GNU Emacs, I don’t. It just returns the string
unchanged.
Back to comp.emacs | Previous | Next — Previous in thread | Next in thread | Find similar
Fixing Garbled Encodings Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-02-15 05:48 +0000
Re: Fixing Garbled Encodings Julian Bradfield <jcb@inf.ed.ac.uk> - 2026-02-16 10:11 +0000
Re: Fixing Garbled Encodings Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-02-16 20:35 +0000
Re: Fixing Garbled Encodings Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-02-17 03:52 +0000
Re: Fixing Garbled Encodings Julian Bradfield <jcb@inf.ed.ac.uk> - 2026-02-17 15:42 +0000
Re: Fixing Garbled Encodings Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-02-24 01:55 +0000
Re: Fixing Garbled Encodings Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-02-24 04:41 +0000
Re: Fixing Garbled Encodings Aidan Kehoe <kehoea@parhasard.net> - 2026-02-24 07:16 +0000
Re: Fixing Garbled Encodings Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-02-24 20:24 +0000
Re: Fixing Garbled Encodings "Henry S. Thompson" <ht@home.hst.name> - 2026-02-24 23:02 +0000
Re: Fixing Garbled Encodings Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-02-24 23:52 +0000
Re: Fixing Garbled Encodings "Henry S. Thompson" <ht@home.hst.name> - 2026-02-26 15:35 +0000
Re: Fixing Garbled Encodings Aidan Kehoe <kehoea@parhasard.net> - 2026-02-26 21:24 +0000
Re: Fixing Garbled Encodings Aidan Kehoe <kehoea@parhasard.net> - 2026-02-25 06:39 +0000
Re: Fixing Garbled Encodings Aidan Kehoe <kehoea@parhasard.net> - 2026-02-25 13:55 +0000
csiph-web