|
From: | Andreas Röhler |
Subject: | Re: python-shell-send-region uses wrong encoding? |
Date: | Tue, 29 Oct 2013 16:29:37 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.0 |
Am 29.10.2013 15:55, schrieb Ernest Adrogué:
29-10-2013, 15:26 (+0100); Andreas Röhler escriu:Am 29.10.2013 12:30, schrieb Ernest Adrogué:#!/usr/bin/env python # -*- coding: utf-8 -*->from __future__ import print_functiona = 'Wörterbuch'.decode('utf8') b = u'Wörterbuch' print(repr(a)) print(repr(b))Works here without the `repr': print(a) print(b)Do you get the same result with C-c C-c as with C-c C-r? Here it's different, print(b) prints `Wörterbuch' (C-c C-r) and `Wörterbuch' (C-c C-c). Something is wrong.
Indeed, get the same error. IMO a bug. BTW `py-execute-region' using python-mode.el would work. Attachment displays results with `repr'-forms first, then without.
py-execute-region.png
Description: PNG image
[Prev in Thread] | Current Thread | [Next in Thread] |