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: how to change file coding system Date: Wed, 17 Aug 2005 07:07:40 +0300 Message-ID: References: NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1124252050 3788 80.91.229.2 (17 Aug 2005 04:14:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 17 Aug 2005 04:14:10 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Aug 17 06:14:01 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E5FIy-0008IU-29 for geh-help-gnu-emacs@m.gmane.org; Wed, 17 Aug 2005 06:13:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E5FIk-0005BU-Jm for geh-help-gnu-emacs@m.gmane.org; Wed, 17 Aug 2005 00:13:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E5FIP-00057C-Qf for help-gnu-emacs@gnu.org; Wed, 17 Aug 2005 00:12:58 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E5FIE-00051X-V2 for help-gnu-emacs@gnu.org; Wed, 17 Aug 2005 00:12:49 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E5FID-00050H-Ov for help-gnu-emacs@gnu.org; Wed, 17 Aug 2005 00:12:45 -0400 Original-Received: from [192.114.186.66] (helo=romy.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.34) id 1E5FSx-0002AD-Rc for help-gnu-emacs@gnu.org; Wed, 17 Aug 2005 00:23:52 -0400 Original-Received: from HOME-C4E4A596F7 (IGLD-80-230-57-175.inter.net.il [80.230.57.175]) by romy.inter.net.il (MOS 3.5.8-GR) with ESMTP id CDF71896 (AUTH halo1); Wed, 17 Aug 2005 07:07:40 +0300 (IDT) Original-To: help-gnu-emacs@gnu.org In-reply-to: (message from Martin Monsorno on Tue, 16 Aug 2005 11:22:28 +0200) 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:28769 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:28769 > From: Martin Monsorno > Date: Tue, 16 Aug 2005 11:22:28 +0200 > > ,---- > | monsorno@mmdev ~/work/workspace.c/gmx $ file bla* > | bla.eclipse: ISO-8859 text > | bla.emacs: ISO-8859 text > `---- > > I then opened "bla.eclipse" with eclipse and saved it again, which > lead to this: > > ,---- > | monsorno@mmdev ~/work/workspace.c/gmx $ file bla* > | bla.eclipse: UTF-8 Unicode text > | bla.emacs: ISO-8859 text > `---- > > Opening "bla.eclipse" with emacs, shows me the string When you open bla.eclipse with Emacs, did you tell Emacs that it was a UTF-8 encoded file? That is, did you say C-x RET c utf-8 RET C-x C-f bla.eclipse or did you use "C-x C-f" as usual? If the latter, I'm guessing that Emacs thought it was an ISO-8859 encoded file (because it cannot easily distinguish between these 2 encodings), and thus your subsequent C-x RET f had no effect at all.