From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ernest =?iso-8859-1?Q?Adrogu=E9?= Newsgroups: gmane.emacs.help Subject: Re: python-shell-send-region uses wrong encoding? Date: Tue, 29 Oct 2013 17:54:44 +0100 Message-ID: <20131029165444.GB29055@doriath.local> References: <20131029113044.GA28039@doriath.local> <58c24be4-f103-4287-a674-dc1eb4ef7331@default> <20131029143716.GA28671@doriath.local> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1383065725 1373 80.91.229.3 (29 Oct 2013 16:55:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 29 Oct 2013 16:55:25 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 29 17:55:28 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 1VbCZk-00016w-4g for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Oct 2013 17:55:28 +0100 Original-Received: from localhost ([::1]:48412 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VbCZj-0006ey-SC for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Oct 2013 12:55:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60149) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VbCZM-0006ab-OV for help-gnu-emacs@gnu.org; Tue, 29 Oct 2013 12:55:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VbCZH-0001bJ-DC for help-gnu-emacs@gnu.org; Tue, 29 Oct 2013 12:55:04 -0400 Original-Received: from mail-wi0-x235.google.com ([2a00:1450:400c:c05::235]:65312) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VbCZB-0001Z2-AE for help-gnu-emacs@gnu.org; Tue, 29 Oct 2013 12:54:59 -0400 Original-Received: by mail-wi0-f181.google.com with SMTP id ex4so150553wid.8 for ; Tue, 29 Oct 2013 09:54:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:references:mime-version :content-type:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=thv0UeuQt7NPbyDWMrrgYSPIJxaWrgYkGMzGXWm3+jw=; b=eUgfOLvfL7lfbu66EeWnc0dS867yyC9mqAMJSIwjWmhCseP2v7/ApcIAFVvGEtKtk6 N02V9JjwasQHetGDQCP04I4Re/8Lmr6NK4Xv8pV0XZdtWrJHMDZz1UGIjJcjitlWlltI Yx3tnvdZsd16PTuu4RiKSR78p80JTUVE2bC5ZVO02RwtZKh0kWF1Xy7NbmTiNVfCQsbg kVZX58JjS+ZsZA4lfFsCE+AlWF37Zn34Vj1DiczuZTGppJiicv1yJR8T/MjhoP2RROwM 3xrWewAHMVY3+36dwiAfXSD6SgA3+rlSAI9Y3fYy1v6qTNfkuDipfzTiwuM/r9gDj7MG W/cw== X-Received: by 10.180.88.5 with SMTP id bc5mr321400wib.7.1383065692188; Tue, 29 Oct 2013 09:54:52 -0700 (PDT) Original-Received: from doriath (200.Red-83-58-146.dynamicIP.rima-tde.net. [83.58.146.200]) by mx.google.com with ESMTPSA id gg20sm6764913wic.1.2013.10.29.09.54.50 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 29 Oct 2013 09:54:51 -0700 (PDT) Content-Disposition: inline In-Reply-To: X-Operating-System: GNU/Linux (Debian jessie/sid) User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::235 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:94250 Archived-At: 29-10-2013, 09:00 (-0700); Drew Adams escriu: > > That was me who asked the question on stackoverflow :-) >=20 > Yes, that's clear. >=20 > > The solutions they gave me didn't really solve the issue. >=20 > I see. Then why did you accept one of them (instead of just > up-voting it, if it provided only partial help)? I accepted it temporarily until I or someone else comes up with a better solution. > And just what was wrong with the solution (from user `wvxvw') > that you accepted? >=20 > Here is `wvxvw's answer, in case it helps others understand > what else might need to be added in order to help you: >=20 > "you need the encoding system in your buffer which contains > the source code to be utf-8 to send two bytes for =F6. However, > if it is a single-byte encoding, and given that you select the > locale that maps the byte F6 to =F6, you will get that byte. >=20 > PS. Make sure you have -*- coding: utf-8 -*- comment." What is wrong with this answer is that the encoding in the buffer was already UTF-8. I double checked every variable and all of them are set to utf-8-unix. Regards.