From: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
To: help-gnu-emacs@gnu.org
Subject: Re: python-shell-send-region uses wrong encoding?
Date: Wed, 30 Oct 2013 13:45:08 +0100 [thread overview]
Message-ID: <5270FF54.7060308@easy-emacs.de> (raw)
In-Reply-To: <CAP_d_8V4G4k7iJ-SyEKb0yaqJiOy1HTo-ir4nGiexGoQoNmzng@mail.gmail.com>
Am 30.10.2013 13:08, schrieb Yuri Khan:
> On Wed, Oct 30, 2013 at 6:37 PM, Stefan Monnier
> <monnier@iro.umontreal.ca> wrote:
>>> IIUC the second added line "-*- coding: utf-8 -*-\n" should not be needed,
>>> as that's the default at the Python side anyway.
>>
>> Based on the OP's experience, it seems this is not true.
>> Also, the doc I can find indicates that the default is ASCII (and was
>> latin-1 in the past, which is what the OP seems to be seeing).
>
> There is Python, and, on the other hand, there is Python.
>
> In some GNU/Linux distributions (e.g. Ubuntu), the default Python is
> version 2.x, whose default encoding is ASCII (and has been that way
> since at least 2.6).
>
> On the other hand, the current version of Python is 3.x, where a big
> Unicode revolution has happened and now the default encoding is UTF-8.
>
> Both of these Pythons recognize Emacs-style and vim-style encoding
> declarations, and in addition the UTF-8 byte order mark (which can be
> called Notepad-style encoding declaration).
>
>
Thanks clarifying this, so I stand corrected.
Andreas
next prev parent reply other threads:[~2013-10-30 12:45 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-29 11:30 python-shell-send-region uses wrong encoding? Ernest Adrogué
2013-10-29 14:24 ` Drew Adams
2013-10-29 14:37 ` Ernest Adrogué
2013-10-29 16:00 ` Drew Adams
2013-10-29 16:54 ` Ernest Adrogué
2013-10-29 17:11 ` Eli Zaretskii
2013-10-29 14:26 ` Andreas Röhler
2013-10-29 14:55 ` Ernest Adrogué
2013-10-29 15:29 ` Andreas Röhler
2013-10-29 15:34 ` Peter Dyballa
2013-10-29 16:34 ` Ernest Adrogué
2013-10-29 17:15 ` Eli Zaretskii
2013-10-29 17:53 ` Ernest Adrogué
2013-10-29 19:10 ` Eli Zaretskii
2013-10-29 20:48 ` Ernest Adrogué
2013-10-29 18:07 ` Peter Dyballa
2013-10-29 20:37 ` Ernest Adrogué
2013-10-29 17:28 ` Stefan Monnier
2013-10-30 3:20 ` Stefan Monnier
2013-10-30 6:45 ` Andreas Röhler
2013-10-30 11:37 ` Stefan Monnier
2013-10-30 12:08 ` Yuri Khan
2013-10-30 12:45 ` Andreas Röhler [this message]
2013-10-31 14:30 ` Ernest Adrogué
2013-10-31 14:31 ` Ernest Adrogué
2013-10-31 17:54 ` Ernest Adrogué
2013-10-31 20:35 ` Stefan Monnier
2013-11-04 19:15 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5270FF54.7060308@easy-emacs.de \
--to=andreas.roehler@easy-emacs.de \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).