From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: How to change the file encoding
Date: Sun, 15 Nov 2009 06:07:42 +0200 [thread overview]
Message-ID: <83tywwmnw1.fsf@gnu.org> (raw)
In-Reply-To: <380eea2a0911121400t3d32bb75jd45c7214bf0b4143@mail.gmail.com>
> 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
prev parent reply other threads:[~2009-11-15 4:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-12 22:00 How to change the file encoding 大熊
2009-11-14 23:49 ` Wang Lei
2009-11-15 4:07 ` Eli Zaretskii [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83tywwmnw1.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.