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: Fri, 12 Aug 2005 14:30:27 +0300 Message-ID: References: NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1123846623 27566 80.91.229.2 (12 Aug 2005 11:37:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 12 Aug 2005 11:37:03 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 12 13:36:58 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E3XqL-0000CD-Vx for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Aug 2005 13:36:58 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E3XtY-000739-CJ for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Aug 2005 07:40:16 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E3Xpy-0006Nz-8z for help-gnu-emacs@gnu.org; Fri, 12 Aug 2005 07:36:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E3Xpv-0006Mk-Fu for help-gnu-emacs@gnu.org; Fri, 12 Aug 2005 07:36:32 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E3XnS-0005lT-AX for help-gnu-emacs@gnu.org; Fri, 12 Aug 2005 07:34:01 -0400 Original-Received: from [192.114.186.66] (helo=romy.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.34) id 1E3Xyn-0004Wa-TN for help-gnu-emacs@gnu.org; Fri, 12 Aug 2005 07:45:42 -0400 Original-Received: from HOME-C4E4A596F7 (IGLD-80-230-201-75.inter.net.il [80.230.201.75]) by romy.inter.net.il (MOS 3.5.8-GR) with ESMTP id CCH03984 (AUTH halo1); Fri, 12 Aug 2005 14:30:24 +0300 (IDT) Original-To: help-gnu-emacs@gnu.org In-reply-to: (message from Martin Monsorno on Fri, 12 Aug 2005 10:34:31 +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:28677 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:28677 > From: Martin Monsorno > Date: Fri, 12 Aug 2005 10:34:31 +0200 > > I have a c-file which file (the command) claims to be a "UTF-8 Unicode > C program text". Now I want to make it a 8859 file, so in the emacs > buffer visiting it I say: > C-x f iso-8859-1-unix > and > C-x C-s That is the right way. > Afterwards, file (the command) says the same as before. Did I miss > something? Do you have a reason to believe `file' more than you believe Emacs? That is, is it possible that `file' lies? Can you find a character in the file after translation that is not Latin-1, and if you can, what is that character? One possibility is that you have in that file a character whose code is outside the valid range of Latin-1 codepoints. But that's a wild guess, you need to find such a character and type "C-u C-x =" with the cursor on it, to see what it is.