From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?B?5aSn54aK?= Newsgroups: gmane.emacs.help Subject: How to change the file encoding Date: Fri, 13 Nov 2009 06:00:56 +0800 Message-ID: <380eea2a0911121400t3d32bb75jd45c7214bf0b4143@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1258238251 15116 80.91.229.12 (14 Nov 2009 22:37:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 14 Nov 2009 22:37:31 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Nov 14 23:37:24 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1N9RFE-0006ir-4A for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Nov 2009 23:37:24 +0100 Original-Received: from localhost ([127.0.0.1]:49022 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N9RFD-0004Yc-Dq for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Nov 2009 17:37:23 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N8hiy-0001sW-Eh for help-gnu-emacs@gnu.org; Thu, 12 Nov 2009 17:01:04 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N8his-0001oX-EQ for help-gnu-emacs@gnu.org; Thu, 12 Nov 2009 17:01:02 -0500 Original-Received: from [199.232.76.173] (port=46135 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N8his-0001oT-6N for help-gnu-emacs@gnu.org; Thu, 12 Nov 2009 17:00:58 -0500 Original-Received: from mail-pw0-f47.google.com ([209.85.160.47]:54738) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N8hir-0002Qn-P2 for help-gnu-emacs@gnu.org; Thu, 12 Nov 2009 17:00:57 -0500 Original-Received: by pwi9 with SMTP id 9so1721452pwi.26 for ; Thu, 12 Nov 2009 14:00:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=O4NwcOw6sNr5G4zzHaPG79Fwc95AxIsvDL1TyubQWuk=; b=Y0GoA7cVROqAejUiF8zvT9M5+Jz0M1Ha742CNARV3OjnobqqIQ9brxp9/NamkMKdAt bb+PNSVDkHdIi3RpYM/lInVZf8HjHYumn0qXYrIr+f/mfR8LeoLt95bAZqVEZmYEyXpi opabmmiOIXjbDbl/gFhdxnbwP6aLWzA2UNSh8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=Mjy48vGeS9rABiNhA2hYTftuK7eFgrlcI4N/grKyC8RKVJQHP7pfhwWI+KKPhz/TrZ Ob+u9FsofqvwMvFjzbMZcTddc7dqJHWhBgjrPHisKcoDG6Ah6y9j/u06bRj+qmwDZUjM DaKTXVTWjs4MueM6/nyCg6+kTtPjAZe+32F7A= Original-Received: by 10.142.1.24 with SMTP id 24mr374404wfa.8.1258063256810; Thu, 12 Nov 2009 14:00:56 -0800 (PST) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-Mailman-Approved-At: Sat, 14 Nov 2009 17:31:55 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:69734 Archived-At: 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=3Dencoding" or ": w ++enc=3Dencoding" to chang the file encoding which is different from the default setting. How do it under emacs, a single command or a package? Thanks! --=20 =E4=B8=8D=E6=98=AF=E6=89=80=E6=9C=89=E7=9A=84=E7=89=B9=E4=BB=91=E8=8B=8F=E9= =83=BD=E6=98=AF=E7=89=9B=E5=A5=B6