[Top][All Lists]

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

Re: decode-coding-string question

From: David Golden
Subject: Re: decode-coding-string question
Date: Mon, 18 Aug 2008 18:45:29 +0100
User-agent: KNode/0.10.9

Ted Zlatanov wrote:

> Context: I have a file full of CP1251 data and don't want to use
> Perl's Encode module because I'm stubborn and think Emacs should
> handle it :)

Just in case: If you have a file full of cp1251, and you know it's
cp1251, it' s usually  best to just open it as cp1251 in the first

C-x RET c cp1251 C-x C-f myfile.txt

It's typically only if you've got a file full of fragments in 
different encodings (horrible mail spool formats and the like) that
you want to decode and reencode particular subregions of whole files.

If you've already opened a file and its encoding is misdetected,
you can also hit 
C-x RET r cp1251 
to "revert" the buffer to the file reopened in the specified encoding.

reply via email to

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