From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ken Newsgroups: gmane.emacs.help Subject: Re: replacing characters and whacky trans-buffer conversion Date: Thu, 08 Mar 2007 07:16:45 -0500 Message-ID: <45EFFEAD.7050808@speakeasy.net> References: <45ED8574.3040201@speakeasy.net> <266B0820-DD96-45C5-96B7-B564953313B9@Web.DE> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1173356234 27905 80.91.229.12 (8 Mar 2007 12:17:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 8 Mar 2007 12:17:14 +0000 (UTC) Cc: GNU Emacs List To: Peter Dyballa Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 08 13:17:08 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 1HPHYQ-0007K2-IH for geh-help-gnu-emacs@m.gmane.org; Thu, 08 Mar 2007 13:17:06 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HPHYc-0004wP-Ml for geh-help-gnu-emacs@m.gmane.org; Thu, 08 Mar 2007 07:17:18 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HPHYO-0004qx-RL for help-gnu-emacs@gnu.org; Thu, 08 Mar 2007 07:17:04 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HPHYM-0004mG-QW for help-gnu-emacs@gnu.org; Thu, 08 Mar 2007 07:17:04 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HPHYM-0004m9-OT for help-gnu-emacs@gnu.org; Thu, 08 Mar 2007 07:17:02 -0500 Original-Received: from mail2.sea5.speakeasy.net ([69.17.117.4]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HPHY9-0005kz-Hi for help-gnu-emacs@gnu.org; Thu, 08 Mar 2007 07:16:49 -0500 Original-Received: (qmail 6336 invoked from network); 8 Mar 2007 12:16:47 -0000 Original-Received: from dsl093-011-017.cle1.dsl.speakeasy.net (HELO [192.168.0.27]) (gebser@[66.93.11.17]) (envelope-sender ) by mail2.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 8 Mar 2007 12:16:47 -0000 User-Agent: Thunderbird 2.0pre (X11/20070214) In-Reply-To: <266B0820-DD96-45C5-96B7-B564953313B9@Web.DE> X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) 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:41792 Archived-At: On 03/06/2007 11:28 AM somebody named Peter Dyballa wrote: > > Am 06.03.2007 um 16:15 schrieb ken: > >> An email comes in with this (emdash) character in it: – > > It's only an EN DASH, U+2013 (dec 8211, oct 20023). Looking at it, it's obvious you're right. The author of the email used it where an emdash should have been used instead. I guess I shouldn't have blindly assumed the author was correct... should have trusted my own eyes. Thanks for pointing that out... brings up another issue with what I'm trying to do. > There are only a few > encodings that contain it: > > CP1250 > CP1251 > CP1252 > NeXT > Mac-Greek > Mac-Cyrillic > Mac-Roman > Adobe Standard Encoding > > (not complete, I presume). This character has in UTF-8 a representation > of 0xE2 0x80 0x92, three bytes. It seems that somehow each of this three > bytes is converted into some three byte representation. A malfunction in > GNOME? (At least I had once such problems in Fedora Core 1.) > > Can you try to paste into an UTF-8 encoding buffer? Its mode-line should > start with -u: (or -U: in GNU Emacs 23.0.0). How do I open up a utf-8 buffer? I'd much prefer to do this just for this one time, not change my emacs configuration to do it forever. > > -- > Greetings > > ~ O > Pete ~~_\\_/% > ~ O o > > -- "Genius might be described as a supreme capacity for getting its possessors into trouble of all kinds." -- Samuel Butler