help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: character encoding question


From: Eli Zaretskii
Subject: Re: character encoding question
Date: Wed, 20 Feb 2013 20:48:48 +0200

> From: Stefan Monnier <monnier@iro.umontreal.ca>
> 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.




reply via email to

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