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: python-shell-send-region uses wrong encoding? Date: Tue, 29 Oct 2013 19:07:29 +0100 Message-ID: <22C8B5B1-01A6-4307-B22A-0F7AF4CBA05C@Web.DE> References: <20131029113044.GA28039@doriath.local> <526FC58A.6080204@easy-emacs.de> <20131029145554.GB28671@doriath.local> <20131029163426.GA29055@doriath.local> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1383070075 23726 80.91.229.3 (29 Oct 2013 18:07:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 29 Oct 2013 18:07:55 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: =?iso-8859-1?Q?Ernest_Adrogu=E9?= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 29 19:07:58 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 1VbDhu-00029F-JJ for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Oct 2013 19:07:58 +0100 Original-Received: from localhost ([::1]:48702 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VbDhu-0000bL-0J for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Oct 2013 14:07:58 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50075) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VbDhb-0000a5-BW for help-gnu-emacs@gnu.org; Tue, 29 Oct 2013 14:07:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VbDhU-0001ud-2J for help-gnu-emacs@gnu.org; Tue, 29 Oct 2013 14:07:39 -0400 Original-Received: from mout.web.de ([212.227.15.4]:49318) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VbDhT-0001uZ-PM for help-gnu-emacs@gnu.org; Tue, 29 Oct 2013 14:07:31 -0400 Original-Received: from sumac.fritz.box ([84.119.50.65]) by smtp.web.de (mrweb101) with ESMTPSA (Nemesis) id 0LzbLS-1Vnc6y26vS-014k6U for ; Tue, 29 Oct 2013 19:07:30 +0100 In-Reply-To: <20131029163426.GA29055@doriath.local> X-Mailer: Apple Mail (2.1085) X-Provags-ID: V03:K0:F7RtDWPdj3hjfIg4Es32h0zSTmO1UZQj4pK/ij4GitebXgmNram xHaojcmSqk1pWtm31K3XDhd08xojkJJhzkY+Wfw85bbrP0dkSKp0a3ZAqApXzkx4ck3EMJA lx9+5Fvztp/XJZ2tJ2i6y/nio5fTNvQFISNt2158yuv2/yAOPubqA27p0FStKiC/FnJPDv1 AcNEdK4jokwOhOCmnGOdA== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.15.4 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:94257 Archived-At: Am 29.10.2013 um 17:34 schrieb Ernest Adrogu=E9: > in all these cases the sequence is converted into > 0xF6, which is the UTF-16 encoding for "=F6" that Python uses = internally, as > the output from repr() shows.. No! UTF-16 is a text encoding that uses for each character in the BMP (Basic = Multilingual Plane) 2 bytes or 16 bits =96 therefore the name. In UTF-16 = =F6 is encoded as 0x00F6. (Above it uses twice 2 bytes, i.e. 4 bytes, = which are distinct from UTF-32.) -- Greetings Pete Make it simple, as simple as possible but no simpler. =96 Albert Einstein