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: garbage chars when pasting French chars into emacs Date: Wed, 01 Feb 2012 23:23:06 +0200 Message-ID: <83ty3ap7t1.fsf@gnu.org> References: <4F29A386.5040901@mousecar.com> NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1328131516 12617 80.91.229.3 (1 Feb 2012 21:25:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 1 Feb 2012 21:25:16 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 01 22:25:15 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Rshg2-0006x1-PZ for geh-help-gnu-emacs@m.gmane.org; Wed, 01 Feb 2012 22:25:14 +0100 Original-Received: from localhost ([::1]:47117 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rshg2-0004Ge-05 for geh-help-gnu-emacs@m.gmane.org; Wed, 01 Feb 2012 16:25:14 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:37368) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rshfw-0004EG-7Q for help-gnu-emacs@gnu.org; Wed, 01 Feb 2012 16:25:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rshfu-0007jq-10 for help-gnu-emacs@gnu.org; Wed, 01 Feb 2012 16:25:08 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:63700) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rshft-0007i4-Hb for help-gnu-emacs@gnu.org; Wed, 01 Feb 2012 16:25:05 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LYQ00000GQ93M00@a-mtaout20.012.net.il> for help-gnu-emacs@gnu.org; Wed, 01 Feb 2012 23:25:03 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.228.51.244]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LYQ00MU8GTQOIC0@a-mtaout20.012.net.il> for help-gnu-emacs@gnu.org; Wed, 01 Feb 2012 23:25:03 +0200 (IST) In-reply-to: <4F29A386.5040901@mousecar.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.166 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:83578 Archived-At: > Date: Wed, 01 Feb 2012 15:41:42 -0500 > From: ken > > Just to be comprehensive I'll state at the outset that I'm using Linux > (CentOS 5.7), so this is the environment emacs is working in. From a > shell I get this: > > $ set|grep -i lang > LANG=en_US.UTF-8 > > Now I pull up a webpage with some French on it: > . Examining the > source code of this page, I see at the top: > > > > So this page is presented in UTF-8. > > Firefox is also set to present pages in UTF-8: View -> Character > Encoding -> UTF-8 > > But when I copy and paste the text from "Francais" to "invisible, 1964)" > inclusive, many of the characters aren't rendered correctly; I get > "garbage" characters in their stead, e.g., the second-to-last line > appears something like this: > > * L^[$(B!G^[$(C)+^[(Bil et l^[$(B!G^[(Besprit, Gallimard, 1960 > > Other lines are improperly rendered also. > > I'd like to fix this. And if possible understand why this doesn't work, > so I might be able to diagnose these problems for myself. What is your value of selection-coding-system? Try setting it to something like ctext-with-extensions.