From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Specify file encoding when storing a plain text or a source code Date: Tue, 01 Feb 2011 08:00:49 -0500 Message-ID: References: <30811936.post@talk.nabble.com> <30814914.post@talk.nabble.com> NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1296565307 28489 80.91.229.12 (1 Feb 2011 13:01:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 1 Feb 2011 13:01:47 +0000 (UTC) To: Help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 01 14:01:43 2011 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.69) (envelope-from ) id 1PkFrb-0001Hi-0W for geh-help-gnu-emacs@m.gmane.org; Tue, 01 Feb 2011 14:01:43 +0100 Original-Received: from localhost ([127.0.0.1]:34637 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PkFrZ-0000ZD-TG for geh-help-gnu-emacs@m.gmane.org; Tue, 01 Feb 2011 08:01:41 -0500 Original-Received: from [140.186.70.92] (port=35323 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PkFqu-0000Xp-2A for Help-gnu-emacs@gnu.org; Tue, 01 Feb 2011 08:01:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PkFqo-0001cU-5A for Help-gnu-emacs@gnu.org; Tue, 01 Feb 2011 08:01:00 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]:35562) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PkFqo-0001cQ-2R for Help-gnu-emacs@gnu.org; Tue, 01 Feb 2011 08:00:54 -0500 Original-Received: from eliz by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1PkFqj-0005FD-FS for Help-gnu-emacs@gnu.org; Tue, 01 Feb 2011 08:00:49 -0500 In-reply-to: <30814914.post@talk.nabble.com> (message from kovvalsky on Tue, 1 Feb 2011 02:12:00 -0800 (PST)) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.10 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:78909 Archived-At: > Date: Tue, 1 Feb 2011 02:12:00 -0800 (PST) > From: kovvalsky > Cc: > > Thank you very much. I guess this saves file, but I wanted for sorting so > Is it correct for sorting? No, I don't think so. Encoding only matters for importing text into Emacs or exporting it to the outer world (disk files, other processes, etc.). Once text is inside an Emacs buffer, it uses the same encoding, which is the internal Emacs representation of characters (an extension of UTF-8).