From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: File Encoding Issue on Windows Date: Wed, 13 Mar 2013 23:16:25 +0100 Message-ID: <4E301087-AEB5-4214-B6BB-C52DA31DE339@Web.DE> References: <1363057726.11242.YahooMailNeo@web165001.mail.bf1.yahoo.com> <1363100259.90696.YahooMailNeo@web165001.mail.bf1.yahoo.com> <87a9q8shoe.fsf@riseup.net> <1363196694.77456.YahooMailNeo@web165002.mail.bf1.yahoo.com> <07F09555-8B22-49CD-903D-2462D7A05BE2@Web.DE> <1363209104.14949.YahooMailNeo@web165005.mail.bf1.yahoo.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1363213003 8585 80.91.229.3 (13 Mar 2013 22:16:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Mar 2013 22:16:43 +0000 (UTC) Cc: "W. Greenhouse" , "help-gnu-emacs@gnu.org" To: Tech Stuff Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 13 23:17:08 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UFtyr-0004BT-Te for geh-help-gnu-emacs@m.gmane.org; Wed, 13 Mar 2013 23:17:06 +0100 Original-Received: from localhost ([::1]:44053 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UFtyV-0002F9-Cu for geh-help-gnu-emacs@m.gmane.org; Wed, 13 Mar 2013 18:16:43 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39321) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UFtyH-0002De-34 for help-gnu-emacs@gnu.org; Wed, 13 Mar 2013 18:16:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UFtyF-0006GR-N5 for help-gnu-emacs@gnu.org; Wed, 13 Mar 2013 18:16:29 -0400 Original-Received: from mout.web.de ([212.227.15.4]:51707) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UFtyF-0006GF-E4 for help-gnu-emacs@gnu.org; Wed, 13 Mar 2013 18:16:27 -0400 Original-Received: from sumac.fritz.box ([95.223.148.182]) by smtp.web.de (mrweb001) with ESMTPA (Nemesis) id 0MhDVJ-1U2tQG2emX-00MO9k; Wed, 13 Mar 2013 23:16:26 +0100 In-Reply-To: <1363209104.14949.YahooMailNeo@web165005.mail.bf1.yahoo.com> X-Mailer: Apple Mail (2.1085) X-Provags-ID: V02:K0:CNQBvPdZwGosmPG8rvk3DPk1IMzQ15NbmLoqKYyRYas bRYoKBRCh24ND638Oyjbin5FQNymKGw815S5cF0nVlTUxeLvMH oKW2cGq0iimMUoVUi0qWpHF4JNKZ0W7pqW9co4U6LrCSa739Bh fD5HdSDHcXWzmTcO7iB/UywHe7tcO3KzSujlhH2BVAS5NiAm1r zX+kSC93E2sUs6bwU9PIA== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.15.4 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:89515 Archived-At: Am 13.03.2013 um 22:11 schrieb Tech Stuff: > apparently I saved the files with the wrong encoding. So now I think = that I really have those incorrect characters. Why? Before your failure the file had 31 bytes contents. In some code = page this represents 31 characters, in UTF-8 this represents 29 = characters. When you save a text in UTF-8 encoding in some 8-bit code page *and* = *you* *do* *not* *change* *one* *single* *byte* then the file's contents = is not changed (because GNU Emacs does not change a single byte). What's = changed, for the application that displays this file's contents, is the = perspective. Example: as a child on four extremities you could only see = from aside the green of a carrot. As a grown-up you can look down on the = same green (and know that something with a different colour is below the = surface). And when you're dead you'll see what the other colour is. Same bytes, different perspectives, different (re)presentations for you. Or consider a series of bit and bytes in a computer's memory. Some = computers read the same sequence and interpret the first eight bits as = the Most Significant Byte, others assume it's the Least Significant = Byte, one sees that your bank account has a credit, the other sees the = debit. So just try to "switch" through some encodings! And don't forget to = watch the mode-line: Does it signal a modified file while switching? = And: Does it work to save an unmodified file? (What has this to do with = encodings?!) -- Greetings Pete The day Microsoft makes something that doesn't suck is the day they = start selling vacuum cleaners. =96 Ernest Jan Plugge