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: replacing characters and whacky trans-buffer conversion Date: Fri, 9 Mar 2007 17:13:16 +0100 Message-ID: <45A42BD9-C53C-4AEA-A377-4757030B9290@Web.DE> References: <45ED8574.3040201@speakeasy.net> <45EF2512.9060200@speakeasy.net> <45EF28B8.2050905@speakeasy.net> <953CC6C7-14E6-4321-8899-665613380DC2@Web.DE> <45F133A6.8090308@speakeasy.net> <45F18333.2030007@speakeasy.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=WINDOWS-1252; delsp=yes; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1173456894 20265 80.91.229.12 (9 Mar 2007 16:14:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 9 Mar 2007 16:14:54 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: ken Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 09 17:14:48 2007 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.50) id 1HPhjo-0006d0-5d for geh-help-gnu-emacs@m.gmane.org; Fri, 09 Mar 2007 17:14:36 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HPhk2-0001cH-Mt for geh-help-gnu-emacs@m.gmane.org; Fri, 09 Mar 2007 11:14:50 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HPhjp-0001a4-Ci for help-gnu-emacs@gnu.org; Fri, 09 Mar 2007 11:14:37 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HPhjl-0001Un-Qp for help-gnu-emacs@gnu.org; Fri, 09 Mar 2007 11:14:37 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HPhjl-0001Uk-OV for help-gnu-emacs@gnu.org; Fri, 09 Mar 2007 11:14:33 -0500 Original-Received: from fmmailgate03.web.de ([217.72.192.234]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HPhjO-0002Rb-Pe for help-gnu-emacs@gnu.org; Fri, 09 Mar 2007 11:14:11 -0500 Original-Received: from smtp05.web.de (fmsmtp05.dlan.cinetic.de [172.20.4.166]) by fmmailgate03.web.de (Postfix) with ESMTP id C6539676A25F; Fri, 9 Mar 2007 17:13:19 +0100 (CET) Original-Received: from [62.134.212.226] (helo=[192.168.1.2]) by smtp05.web.de with asmtp (TLSv1:AES128-SHA:128) (WEB.DE 4.107 #114) id 1HPhiY-0008CR-00; Fri, 09 Mar 2007 17:13:19 +0100 In-Reply-To: <45F18333.2030007@speakeasy.net> X-Mailer: Apple Mail (2.752.2) X-Sender: Peter_Dyballa@web.de X-detected-kernel: Linux 2.4-2.6 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:41834 Archived-At: Am 09.03.2007 um 16:54 schrieb ken: > Much of what I do entails copying & yanking > text into an existing emacs buffer. I might do this a number of times > into the same file and each of the coding types of the insertions =20 > might > be different. If there were one particular encoding type in emacs =20 > which > would display all possible other encoding types properly and allow =20 > me to > edit that file, I would try that and maybe even change all my files to > that. But I doubt that capability exists (or ever will in my current > lifetime). There definitely is! I have test files encoded in 20 or 30 encodings =20 (ISO 8859, some Mac, Adobe PostScript, NeXT, UTF-8, some MS Windows). =20= In Mac OS X for example, without GNOME, it works without flaw to =20 copy&paste between buffers of the same Emacs, between X clients, and =20 between X and Aqua (Apple's "Display PDF" windowing system) clients =96 =20= provided one thing: the contents you paste into some buffer fits into =20= this buffer's encoding! Otherwise you get empty boxes ... GNU Emacs uses internally a particular encoding for text. Depending =20 on the coding system you have chosen (by default or deliberately) you =20= can get different presentations of the same content. A problem are =20 Mac, NeXT, and MS encodings: they use the area of 8 bit control =20 characters (U+0080...U+009F) to encode "real" characters. So they =20 have 32 entities more than the more useful ISO Latin (ISO 8859-x) =20 encodings. Copying from them and pasting into ISO Latin buffers can =20 easily fail because many of these "proprietary" characters cannot be =20 found in ISO Latin. For example EN or EM DASH, DOUBLE QUOTATION =20 MARKs ... UTF-8 or the iso-2022-x encodings offer some kind of 'one encoding =20 fits all' ... -- Greetings Pete Eat the rich =96 the poor are tough and stringy.