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: Coding system question(s) Date: Sun, 27 Mar 2011 19:31:44 +0200 Message-ID: <83hbaosc5b.fsf@gnu.org> References: <_O-dnT9CbqnkyBLQnZ2dnUVZ_vGdnZ2d@sysmatrix.net> NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1301247129 7179 80.91.229.12 (27 Mar 2011 17:32:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 27 Mar 2011 17:32:09 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Mar 27 19:32:05 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 1Q3toq-0002YU-9h for geh-help-gnu-emacs@m.gmane.org; Sun, 27 Mar 2011 19:32:04 +0200 Original-Received: from localhost ([127.0.0.1]:38287 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q3top-0003vB-M5 for geh-help-gnu-emacs@m.gmane.org; Sun, 27 Mar 2011 13:32:03 -0400 Original-Received: from [140.186.70.92] (port=39951 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q3toU-0003qW-0w for help-gnu-emacs@gnu.org; Sun, 27 Mar 2011 13:31:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q3toS-0002xf-JO for help-gnu-emacs@gnu.org; Sun, 27 Mar 2011 13:31:41 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:59475) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q3toS-0002xZ-Ck for help-gnu-emacs@gnu.org; Sun, 27 Mar 2011 13:31:40 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0LIQ00H008KJ3X00@a-mtaout23.012.net.il> for help-gnu-emacs@gnu.org; Sun, 27 Mar 2011 19:31:38 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.126.47.180]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LIQ00GWJ8OOGMB0@a-mtaout23.012.net.il> for help-gnu-emacs@gnu.org; Sun, 27 Mar 2011 19:31:38 +0200 (IST) In-reply-to: <_O-dnT9CbqnkyBLQnZ2dnUVZ_vGdnZ2d@sysmatrix.net> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.175 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:80474 Archived-At: > Date: Sun, 27 Mar 2011 10:19:22 -0500 > From: "B. T. Raven" > > Coding system for saving file?(default nil)is always the prompt in the > mini-buffer when I do C-x ret f Is there a typo somewhere? "C-x RET f" just sets the encoding of the current buffer, it doesn't save any file. > With w32 build of Emacs what do I have to do to ensure that all plain > text files (.txt, .tex, .el, etc.) are read in and written out in utf-8 > encoding? M-x set-locale-environment RET utf-8 RET > (set-clipboard-coding-system 'utf-8) > (set-selection-coding-system 'utf-8) Don't do that on Windows, you are shooting yourself in the foot. The Windows clipboard works in UTF-16 (not UTF-8) by default, and switching it to UTF-8 is asking for trouble, because Windows doesn't really understand UTF-8 in the clipboard data.