[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to change the file encoding
From: |
Eli Zaretskii |
Subject: |
Re: How to change the file encoding |
Date: |
Sun, 15 Nov 2009 06:07:42 +0200 |
> Date: Fri, 13 Nov 2009 06:00:56 +0800
> From: =?UTF-8?B?5aSn54aK?= <bearsprite@gmail.com>
>
> For work reason, I always process some kinds of file encodings: gbk,
> shift-jis, utf8, utf16, ...
> By vim, after open or new a file, I can use ": e ++enc=encoding" or
> ": w ++enc=encoding" to chang the file encoding which is different
> from the default setting.
> How do it under emacs, a single command or a package?
Type "C-x RET c <encoding> RET" before the command, e.g., to visit a
file which you know is in UTF-8, type
C-x RET c utf-8 RET C-x C-f <filename> RET