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 21:37:13 +0100 Message-ID: <20131029203713.GA29712@doriath.local> References: <20131029113044.GA28039@doriath.local> <526FC58A.6080204@easy-emacs.de> <20131029145554.GB28671@doriath.local> <20131029163426.GA29055@doriath.local> <22C8B5B1-01A6-4307-B22A-0F7AF4CBA05C@Web.DE> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1383079071 6186 80.91.229.3 (29 Oct 2013 20:37:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 29 Oct 2013 20:37:51 +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 21:37:55 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 1VbG31-00067E-Iu for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Oct 2013 21:37:55 +0100 Original-Received: from localhost ([::1]:49305 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VbG31-00069o-1d for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Oct 2013 16:37:55 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54489) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VbG2e-00069a-Uo for help-gnu-emacs@gnu.org; Tue, 29 Oct 2013 16:37:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VbG2U-0001tP-U6 for help-gnu-emacs@gnu.org; Tue, 29 Oct 2013 16:37:32 -0400 Original-Received: from mail-wg0-x22c.google.com ([2a00:1450:400c:c00::22c]:59184) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VbG2U-0001t9-DQ for help-gnu-emacs@gnu.org; Tue, 29 Oct 2013 16:37:22 -0400 Original-Received: by mail-wg0-f44.google.com with SMTP id n12so412267wgh.35 for ; Tue, 29 Oct 2013 13:37:21 -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=IMycdO3UJ3St+aFhANN6CdajgMV7DBVEwSthz94ePmo=; b=hvdf7Ilgl8AeS5Ro+6bdxAx+bC+3rQYEKAg97VpR0UW4nriq29B4O73KizNOK9JLGt DBv3kkHg9dQswowEB6l5flfzdTc9EwWNUxqXNgCeZ6OZEhw8hRxXVUnS/YCq4aPh4uzD LhiXlUY2zpkKBS+temzr5XyBoswsiYgJ0UfOXmrjjQqSoLRKCtEW8DQUM41N5IS63S3U 5QA+G78PS5mFaV/s6OJ+wrepuZVIuUKqMwiEGoVbE0rU4yOzIp7ejZI/FbXFn671UEh5 w17xORshMRF5wqsk6lOPeZY3ymspyHEKaS6Pg8Or98CO/VvPuEHNaQ2r5uyiPOTG3MqF 5lXQ== X-Received: by 10.194.240.129 with SMTP id wa1mr1242434wjc.31.1383079041233; Tue, 29 Oct 2013 13:37:21 -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 b7sm8532470wiz.8.2013.10.29.13.37.19 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 29 Oct 2013 13:37:19 -0700 (PDT) Content-Disposition: inline In-Reply-To: <22C8B5B1-01A6-4307-B22A-0F7AF4CBA05C@Web.DE> 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:c00::22c 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:94259 Archived-At: 29-10-2013, 19:07 (+0100); Peter Dyballa escriu: >=20 > Am 29.10.2013 um 17:34 schrieb Ernest Adrogu=C3=A9: >=20 > > in all these cases the sequence is converted into > > 0xF6, which is the UTF-16 encoding for "=C3=B6" that Python uses intern= ally, as > > the output from repr() shows.. >=20 > No! >=20 > UTF-16 is a text encoding that uses for each character in the BMP (Basic > Multilingual Plane) 2 bytes or 16 bits =E2=80=93 therefore the name. In U= TF-16 =C3=B6 > is encoded as 0x00F6. (Above it uses twice 2 bytes, i.e. 4 bytes, which > are distinct from UTF-32.) I stand corrected.