From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Nacho Newsgroups: gmane.emacs.help Subject: Encodings in Emacs. Date: Mon, 19 May 2003 09:27:02 GMT Organization: Terra Networks Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1053336803 31313 80.91.224.249 (19 May 2003 09:33:23 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 19 May 2003 09:33:23 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Mon May 19 11:33:21 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19Hh0L-00084c-00 for ; Mon, 19 May 2003 11:32:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19Hgyh-0004jN-09 for gnu-help-gnu-emacs@m.gmane.org; Mon, 19 May 2003 05:30:43 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newshosting.com!news-xfer2.atl.newshosting.com!140.99.99.194.MISMATCH!newsfeed1.easynews.com!easynews.com!easynews!news-out.nuthinbutnews.com!propagator2-sterling!news-in.nuthinbutnews.com!nsnmrro1-lo.nuria.telefonica-data.net!nsnmpen1-lo.nuria.telefonica-data.net!telenews.teleline.es!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.1001 (Gnus v5.10.1) Emacs/21.2 (gnu/linux) Cancel-Lock: sha1:QDEsm2zpHJW9priZoQyxnY2qK0U= Original-Lines: 23 Original-NNTP-Posting-Host: 10.20.31.4 Original-X-Complaints-To: usenet@teleline.es Original-X-Trace: telenews.teleline.es 1053336422 10.20.31.4 (Mon, 19 May 2003 11:27:02 MET DST) Original-NNTP-Posting-Date: Mon, 19 May 2003 11:27:02 MET DST Original-Xref: shelby.stanford.edu gnu.emacs.help:113376 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:9870 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:9870 Hello. I have been using Emacs to write and edit japanese files and I would like to ask you something I have not found how to do. When I write text, I know how to change the encoding of the buffer to save it with the encoding I want, for example, EUC-JP, ShiftJIS, etc. When I open it again, I have not to tell Emacs the encofing of the file, he knows the encoding used. How can I know in what encoding is the file? Also, if I want to read a file in a specific encoding, how can I do that? Or similarly, to change the encoding of a buffer but re-decofing it. That is, if I change the encoding with M-x set-buffer-file-coding-system it doesnt reencode the buffer. The use I want to do to this is when I read a file with several codings mixed (ShiftJIS and EUC-JP) and I want to read both. Thanks a lot in advance. Best regards.