[Top][All Lists]

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

Re: character encoding question

From: Eric Abrahamsen
Subject: Re: character encoding question
Date: Thu, 21 Feb 2013 10:42:24 +0800
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2 (gnu/linux)

Eli Zaretskii <> writes:

>> From: Stefan Monnier <>
>> Date: Wed, 20 Feb 2013 09:42:49 -0500
>> > Given a series of mystery bytes, can I test them against different
>> > charsets, and see what gibberish Emacs comes up with?
>>    (decode-coding-string "\344\270\255" 'utf-8)  ==>   "δΈ­"
> I'd actually suggest decode-coding-region, because it doesn't require
> copying the "mystery bytes" into a string, something that might change
> the bytes.

Perfect, just what I was looking for. I was getting tired of repeated
revert-buffer-with-etc calls! The explanation about the octal notation
cleared things up nicely, as well.

Many thanks,

reply via email to

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